mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fix TreeDropdownFields throwing an exception. (from r92411)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92462 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
21879b9bf2
commit
0f2c93d9f7
@ -40,6 +40,7 @@ class TreeDropdownField extends FormField {
|
||||
|
||||
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
||||
|
||||
Requirements::javascript(THIRDPARTY_DIR . '/prototype.js');
|
||||
Requirements::javascript(THIRDPARTY_DIR . '/behaviour.js');
|
||||
Requirements::javascript(THIRDPARTY_DIR . '/tree/tree.js');
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/TreeSelectorField.js');
|
||||
@ -123,7 +124,7 @@ class TreeDropdownField extends FormField {
|
||||
public function tree(SS_HTTPRequest $request) {
|
||||
$isSubTree = false;
|
||||
|
||||
if($ID = (int) $request->param('ID')) {
|
||||
if($ID = (int) $request->latestparam('ID')) {
|
||||
$obj = DataObject::get_by_id($this->sourceObject, $ID);
|
||||
$isSubTree = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user