mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX: only remove 'ID' off of imageFieldName
avoid conflict with imageFieldName containing 'ID'/'id' in their name
This commit is contained in:
parent
4e5271f527
commit
feb39651bf
@ -52,8 +52,7 @@ class GridFieldBulkEditingHelper {
|
||||
{
|
||||
if ( $config['imageFieldName'] != null )
|
||||
{
|
||||
//@TODO: this wont work if the fieldname has ID in it: i.e. TheIDImageID -> remove last 2 char only
|
||||
unset( $dataFields[str_ireplace('ID', '', $config['imageFieldName']) ] );
|
||||
unset( $dataFields[ substr($config['imageFieldName'], 0, -2) ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user