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.

CommentFileSizeAuthor
auto_nodetitle_notice.patch504 bytesmikeryan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

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

anmolgoyal74’s picture

Assigned: Unassigned » anmolgoyal74

The patch applies successfully and worked as designed.

anmolgoyal74’s picture

Status: Reviewed & tested by the community » Closed (outdated)

Already fixed in latest version of the module.