Hi!

I'm trying to set node title based on amazon title from asin module (using token), but it did not work. It just set 'ant' as a title. After investigation, i found out that in hook_nodeapi $op=validate never called. But for other node types it is called ok. My node type is Product, created via ubercart.

Drupal: 5.7
Automatic Nodetitles: 5.x-1.1

I can provide more information on your request if you need.

Thanks!

Comments

budda’s picture

I'm seeing the same problem with a CCK type.
I'm using drupal_execute() to create multiple nodes, but the title remains 'ant'. The validate operation does get called, the first time.

budda’s picture

Version: 5.x-1.1 » 5.x-1.x-dev

Here is the reason for the 'ant' problem. http://drupal.org/node/148530
Bad news is there's no fix.

Maybe setting the node title in the validation hook is a bad idea?

fago’s picture

Status: Active » Fixed

It's the only way to get the preview working. You can invoke autonode title manually by calling auto_nodetitle_set_title($node) before running drupal_execute.

@cyberpunk: When validate isn't called, it's not auto nodetitles fault. Perhaps you are experiencing the same bug as budda?

Anonymous’s picture

Status: Fixed » Closed (fixed)

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