Commit 8aa44b55 authored by webchick's avatar webchick

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

parent 16a30f19
......@@ -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(
......
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment