mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
elofgren: In TableField::sortData() initialize 'dataObjects' to an empty array to prevent undefined variable errors when editing the name of a Security group that has no members. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41780 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
4ae8c85d46
commit
282b8292a4
@ -414,6 +414,7 @@ class TableField extends TableListField {
|
||||
* organises the data in the appropriate manner for saving
|
||||
*/
|
||||
function sortData($data, $recordID = null) {
|
||||
$dataObjects = array();
|
||||
if($data) {
|
||||
$dataObjects = array();
|
||||
foreach($data as $field => $rowData) {
|
||||
|
Loading…
Reference in New Issue
Block a user