While creating a node, the template selector in CKEditor doesn't show templates available to the node type being created. I've included a patch which fixes this, by checking for the content type being edited for the node creation route in a similar manner to how the module was already checking it for the node edit route.

Comments

Anonymous’s picture

JKerschner created an issue. See original summary.

david.gil’s picture

StatusFileSize
new1.39 KB

I have tested the patch, after a reroll with actual dev version. I send the rerolled patch with minor improvements

If works well!.

Best
David

Status: Needs review » Needs work

The last submitted patch, 2: templates_not_working-2800315-2.patch, failed testing.

david.gil’s picture

Status: Needs work » Reviewed & tested by the community
Anonymous’s picture

Status: Reviewed & tested by the community » Needs work

Thanks for the reroll! I think that testbot failed to apply the patch because the paths named at the top of the file have extra directories in them (/docroot/modules/contrib). Can you fix that so the patch is created just against the module rather than against the site the module is in?

david.gil’s picture

Status: Needs work » Needs review
StatusFileSize
new1.23 KB

send to test bot

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

The test bot seemed to like that.

  • jurgenhaas committed c95e963 on 8.x-2.x
    Issue #2800315 by david.gil, JKerschner: Templates not working during...
jurgenhaas’s picture

Status: Reviewed & tested by the community » Fixed

Just committed and will make a release available asap

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.