Doing programmatic node_save() calls (i.e., when migrating) generates notices from auto_nodetitle:

Undefined property: stdClass::$nid File /var/www/xmike/XPortal/sites/all/modules/contrib/auto_nodetitle/auto_nodetitle.module, line 81(file: /var/www/xmike/XPortal/sites/all/modules/contrib/auto_nodetitle/auto_nodetitle.module, line 81)

Attached patch fixes this.

auto_nodetitle_notice.patch504 bytesmikeryan
Members fund testing for the Drupal project. Drupal Association Learn more


blainelang’s picture

Also seeing this error but I was able to set the title property for the content type to Disabled (admin/structure/content_type) and auto_nodetitle then was not triggered and I could set the node title manually in code.

marvil07’s picture

Status: Needs review » Reviewed & tested by the community

@mikeryan: Thanks for the patch!

It works as expected.

joelpittet’s picture

Issue summary: View changes

Just bumping because it's been RTBC for some time now