bug #1253252 [display] Cannot NULL a column with relation defined
This commit is contained in:
@@ -23,7 +23,7 @@ function nullify(theType, urlField, md5Field, multi_edit)
|
||||
}
|
||||
|
||||
// "SET" field , "ENUM" field with more than 20 characters
|
||||
// or foreign key field
|
||||
// or foreign key field (drop-down)
|
||||
if (theType == 1 || theType == 3 || theType == 4) {
|
||||
rowForm.elements['field_' + md5Field + multi_edit + '[]'].selectedIndex = -1;
|
||||
}
|
||||
@@ -41,6 +41,10 @@ function nullify(theType, urlField, md5Field, multi_edit)
|
||||
|
||||
} // end if
|
||||
}
|
||||
// foreign key field (with browsing icon for foreign values)
|
||||
else if (theType == 6) {
|
||||
rowForm.elements['field_' + md5Field + multi_edit + '[]'].value = '';
|
||||
}
|
||||
// Other field types
|
||||
else /*if (theType == 5)*/ {
|
||||
rowForm.elements['fields' + multi_edit + '[' + urlField + ']'].value = '';
|
||||
|
Reference in New Issue
Block a user