Fix for namespaced classes

This commit is contained in:
hirenpatel 2016-11-30 01:08:50 +00:00 committed by Robbie Averill
parent 43c1b8352c
commit 59f44984b8
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
/** /**
* @var string * @var string
*/ */
protected $itemRequestClass = 'GridFieldAddNewMultiClassHandler'; protected $itemRequestClass = 'SilverStripe\\Forms\\GridField\\GridFieldAddNewMultiClassHandler';
/** /**
* @param string $fragment the fragment to render the button in * @param string $fragment the fragment to render the button in

View File

@ -221,7 +221,7 @@
var cls = this.parents(".ss-gridfield-add-new-multi-class").find("select").val(); var cls = this.parents(".ss-gridfield-add-new-multi-class").find("select").val();
if(cls && cls.length) { if(cls && cls.length) {
this.getGridField().showDetailView(link.replace("{class}", cls)); this.getGridField().showDetailView(link.replace("{class}", encodeURI(cls)));
} }
return false; return false;