Skip to content

Commit

Permalink
Merge pull request #35 from bhofstaetter/bhofstaetter-patch-missing-n…
Browse files Browse the repository at this point in the history
…amespaces

added missing imports
  • Loading branch information
sheadawson authored Jul 5, 2020
2 parents 3dc5dad + 56fa4a8 commit dda6ba3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Forms/DependentDropdownField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit dda6ba3

Please sign in to comment.