mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Fix for namespaced classes
This commit is contained in:
parent
43c1b8352c
commit
59f44984b8
@ -40,7 +40,7 @@ class GridFieldAddNewMultiClass implements GridField_HTMLProvider, GridField_URL
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $itemRequestClass = 'GridFieldAddNewMultiClassHandler';
|
||||
protected $itemRequestClass = 'SilverStripe\\Forms\\GridField\\GridFieldAddNewMultiClassHandler';
|
||||
|
||||
/**
|
||||
* @param string $fragment the fragment to render the button in
|
||||
|
@ -221,7 +221,7 @@
|
||||
var cls = this.parents(".ss-gridfield-add-new-multi-class").find("select").val();
|
||||
|
||||
if(cls && cls.length) {
|
||||
this.getGridField().showDetailView(link.replace("{class}", cls));
|
||||
this.getGridField().showDetailView(link.replace("{class}", encodeURI(cls)));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user