mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Making $fieldList argument in HasManyCTF and ManyManyCTF optional to adhere to changed parent implementation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73026 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ef5c9a42d5
commit
8fe1809344
@ -20,7 +20,7 @@ class HasManyComplexTableField extends ComplexTableField {
|
||||
|
||||
protected $relationAutoSetting = false;
|
||||
|
||||
function __construct($controller, $name, $sourceClass, $fieldList, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
|
||||
function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
|
||||
parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin);
|
||||
|
||||
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
||||
@ -64,7 +64,7 @@ class HasManyComplexTableField extends ComplexTableField {
|
||||
if($list != 'undefined')
|
||||
$items = explode(',', $list);
|
||||
}
|
||||
|
||||
|
||||
$saveDest->setByIDList($items);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ class ManyManyComplexTableField extends HasManyComplexTableField {
|
||||
|
||||
public $itemClass = 'ManyManyComplexTableField_Item';
|
||||
|
||||
function __construct($controller, $name, $sourceClass, $fieldList, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
|
||||
function __construct($controller, $name, $sourceClass, $fieldList = null, $detailFormFields = null, $sourceFilter = "", $sourceSort = "", $sourceJoin = "") {
|
||||
|
||||
parent::__construct($controller, $name, $sourceClass, $fieldList, $detailFormFields, $sourceFilter, $sourceSort, $sourceJoin);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user