#797668 by marcingy, StuartJNCC: Update fails on node_update_7006.

merge-requests/26/head
Angie Byron 2010-05-14 04:37:53 +00:00
parent 16a30f1958
commit 8aa44b55a2
2 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ function node_update_7006(&$sandbox) {
// Add body field instances for existing node types.
foreach ($result as $node_type) {
if ($node_type->has_body) {
node_add_body_field($node_type->type, $node_type->body_label);
node_add_body_field($node_type, $node_type->body_label);
}
$sandbox['node_types_info'][$node_type->type] = array(

View File

@ -537,7 +537,7 @@ function node_type_save($info) {
* Add default body field to a node type.
*
* @param $type
* The node type name.
* A node type object.
* @param $label
* The label for the body instance.
*/