Panels module v3.3
Ctools module v1.3

I am using panels for "Node add/edit form"
And for title/breadcrumb: "%node:content-type: %node:title"

When submitting the node I get:
Notice: Undefined property: stdClass::$title in node_tokens() (line 133 of /var/www/projectname/modules/node/node.tokens.inc).

Tried using node-edit context, but this creates other problems - multiple calls to node_edit_form(), alter hooks, etc.
I'm attaching the patch I used to fix my problem - adding the title to the context for new node.

Comments

damienmckenna’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Issue summary: View changes

mpark’s picture

Why this patch is not applied to the standard version of module?

rivimey’s picture

Status: Needs review » Reviewed & tested by the community
Parent issue: » #2828925: Plan for CTools 7.x-1.13 release

Patch applies to current 7.x-1.x-dev branch. Seems fine to me.

japerry’s picture

Status: Reviewed & tested by the community » Needs work

Hmm I think this needs to be '' instead of NULL.

damienmckenna’s picture

This didn't get into 1.13, maybe it will get into 1.14.

We need to try getting this to RTBC.

dhruveshdtripathi’s picture

Status: Needs work » Needs review
StatusFileSize
new461 bytes

Agreed with change suggested by @japerry in comment #5. Made the change in attached patch.

damienmckenna’s picture

japerry’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.