File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1663,6 +1663,7 @@ public function getQueryValuesForInsertAndUpdateInMultipleEdit(
16631663 . ' = ' . $ currentValueAsAnArray ;
16641664 } elseif (
16651665 ! (empty ($ multiEditFuncs [$ key ])
1666+ && empty ($ multiEditColumnsNull [$ key ])
16661667 && isset ($ multiEditColumnsPrev [$ key ])
16671668 && $ currentValue === $ multiEditColumnsPrev [$ key ])
16681669 && $ currentValueAsAnArray !== ''
Original file line number Diff line number Diff line change 32833283 <code>$_POST['field_transformation'][$fieldindex]</code>
32843284 <code>$_POST['field_transformation_options'][$fieldindex]</code>
32853285 </MixedArrayAccess>
3286- <MixedAssignment occurrences="3">
3287- <code>$GLOBALS['num_fields']</code>
3288- <code>$GLOBALS['result']</code>
3286+ <MixedAssignment occurrences="1">
32893287 <code>$mimetype</code>
32903288 </MixedAssignment>
32913289 </file>
Original file line number Diff line number Diff line change @@ -2217,6 +2217,30 @@ public function testGetQueryValuesForInsertAndUpdateInMultipleEdit(): void
22172217 ],
22182218 $ result
22192219 );
2220+
2221+ // Test to see if a field can be set to NULL
2222+ $ result = $ this ->insertEdit ->getQueryValuesForInsertAndUpdateInMultipleEdit (
2223+ $ multi_edit_columns_name ,
2224+ ['on ' ],
2225+ '' ,
2226+ ['' ],
2227+ [],
2228+ false ,
2229+ [],
2230+ [],
2231+ 'NULL ' ,
2232+ [],
2233+ '0 ' ,
2234+ []
2235+ );
2236+
2237+ $ this ->assertEquals (
2238+ [
2239+ ['`fld` = NULL ' ],
2240+ [],
2241+ ],
2242+ $ result
2243+ );
22202244 }
22212245
22222246 /**
You can’t perform that action at this time.
0 commit comments