- Patch #403034 by roderik, Damien Tournoud: node_assign_owner_action() logs an object type instead of the type name.
parent
80d21ffbb2
commit
f94b014ca7
|
@ -3582,7 +3582,7 @@ function node_save_action($node) {
|
|||
function node_assign_owner_action($node, $context) {
|
||||
$node->uid = $context['owner_uid'];
|
||||
$owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $context['owner_uid']))->fetchField();
|
||||
watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_type_get_type($node), '%title' => $node->title, '%name' => $owner_name));
|
||||
watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_type_get_name($node), '%title' => $node->title, '%name' => $owner_name));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue