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.

Files: 
CommentFileSizeAuthor
auto_nodetitle_notice.patch504 bytesmikeryan

Comments

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.

Status:Needs review» Reviewed & tested by the community

@mikeryan: Thanks for the patch!

It works as expected.