mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Removed old useless methode
This commit is contained in:
parent
e7c7239ada
commit
7a0b32eafd
@ -383,22 +383,6 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a unique prefix to sensitive HTML attributes (ID, FOR, NAME)
|
||||
* Fixes rendering issue (i.e. dropdown fields) and IDs being mistaken for page IDs
|
||||
*
|
||||
* @param string $html
|
||||
* @param string/int $id
|
||||
* @return string
|
||||
*/
|
||||
function parseFieldHTMLWithRecordID($html, $id)
|
||||
{
|
||||
$prefix = 'record_'.$id.'_';
|
||||
return str_ireplace ( array('id="', 'for="', 'name="'),
|
||||
array('id="'.$prefix, 'for="'.$prefix, 'name="'.$prefix),
|
||||
$html);
|
||||
}
|
||||
|
||||
/**
|
||||
* Edited version of the GridFieldEditForm function
|
||||
* adds the 'Bulk Upload' at the end of the crums
|
||||
|
Loading…
Reference in New Issue
Block a user