Closed (fixed)
Project:
Node Convert
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2011 at 18:09 UTC
Updated:
18 Dec 2012 at 22:40 UTC
Pressing the "Convert" tab button to convert a Node with node references triggers this error:
Notice: Undefined index: value in node_convert_get_field_value() (line 1150 of sites\all\modules\node_convert\node_convert.module).
In node_convert.module that lines 1143 thru 1148 are commented out:
elseif ($field['type'] == "nodereference") {
$value = "nid: " . $field_values[0]['nid'];
}
elseif ($field['type'] == "userreference") {
$value = "uid: " . $field_values[0]['uid'];
}
Cracking into the module a little bit, I found out that the new $field['type'] identifiers for References are "node_reference" and "user_reference". Updating these in node_convert.module and uncommenting these lines, it converts safely.
Comments
Comment #1
wjaspers commentedComment #2
pauljohn32 commentedOK, I see the same error. I changed those lines in node_convert.module as *I think* you recommend:
elseif ($field['type'] == "node_reference") {
$value = "nid: " . $field_values[0]['nid'];
}
elseif ($field['type'] == "user_reference") {
$value = "uid: " . $field_values[0]['uid'];
}
But I still see same error. After editing those lines, am I supposed to run some update script?
Comment #3
drasgardian commentedI upgraded to the latest dev release and no longer see this issue
Comment #4
alcroito commentedFixed in 7.x-dev.