mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed regression from r100774 (from r100775)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105650 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e78dc5273d
commit
1d80d77270
@ -1082,7 +1082,12 @@ class ComplexTableField_Popup extends Form {
|
||||
Requirements::javascript(SAPPHIRE_DIR . "/javascript/ComplexTableField_popup.js");
|
||||
|
||||
// Append requirements from instance callbacks
|
||||
$callback = $this->getParentController()->getParentController()->requirementsForPopupCallback;
|
||||
$parent = $this->getParentController();
|
||||
if($parent instanceof ComplexTableField) {
|
||||
$callback = $parent->requirementsForPopupCallback;
|
||||
} else {
|
||||
$callback = $parent->getParentController()->requirementsForPopupCallback;
|
||||
}
|
||||
if($callback) call_user_func($callback, $this);
|
||||
|
||||
// Append requirements from DataObject
|
||||
|
Loading…
x
Reference in New Issue
Block a user