'ant' bug happening in 1.2
Daniel Hanold - August 18, 2009 - 20:50
| Project: | Automatic Nodetitles |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I'm having the same bug as described here http://drupal.org/node/413678.
With the PHP stated below, the title (both when previewed and saved) only returns "ant". Here's my php code:
<?php
if (empty($node->nid)) {
// When the profile gets first created,
// use the username of the currently logged-in user
global $user;
return $user->name;
} else {
// When the profile gets edited,
// either by the user itself or
// an admin, use the existing title.
return $node->title;
}
?>Doing a clean uninstall of version 1.2 and installing 1.0 fixes the problem.
