From 56fa4a86e36e14a1cf388872465797c89b62735e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20Hofst=C3=A4tter?= Date: Thu, 2 Jul 2020 16:06:18 +0200 Subject: [PATCH] added missing namespaces --- src/Forms/DependentDropdownField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Forms/DependentDropdownField.php b/src/Forms/DependentDropdownField.php index 8874f57..dbd86b0 100644 --- a/src/Forms/DependentDropdownField.php +++ b/src/Forms/DependentDropdownField.php @@ -2,6 +2,8 @@ namespace Sheadawson\DependentDropdown\Forms; +use SilverStripe\Admin\LeftAndMain; +use SilverStripe\Control\Controller; use SilverStripe\Forms\DropdownField; use SilverStripe\Control\HTTPResponse; use SilverStripe\Core\Convert; @@ -170,7 +172,7 @@ public function setSource($source) public function Field($properties = []) { if (!is_subclass_of(Controller::curr(), LeftAndMain::class)) { - Requirements::javascript('silverstripe/admin: thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); + Requirements::javascript('silverstripe/admin:thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); } Requirements::javascript(