From 5c457c787bdc27764264609252b01f83bfda99e2 Mon Sep 17 00:00:00 2001 From: Marcus Dalgren Date: Wed, 3 Jul 2013 16:33:38 +0200 Subject: [PATCH 1/2] Add allowed actions --- code/GridFieldExpandableForm.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/GridFieldExpandableForm.php b/code/GridFieldExpandableForm.php index 3b778a7..dc8e1b2 100644 --- a/code/GridFieldExpandableForm.php +++ b/code/GridFieldExpandableForm.php @@ -43,6 +43,12 @@ public function getHTMLFragments($gridField) { class GridFieldExpandableForm_ItemRequest extends RequestHandler { + private static $allowed_actions = array( + 'edit', + 'view', + 'ItemEditForm' + ); + static $url_handlers = array( '$Action!' => '$Action', '' => 'edit', From ada50485c114cf08ebc63033eee09ac19a8586ec Mon Sep 17 00:00:00 2001 From: Marcus Dalgren Date: Wed, 3 Jul 2013 17:00:15 +0200 Subject: [PATCH 2/2] Added action for ExpandableForm --- code/GridFieldExpandableForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/GridFieldExpandableForm.php b/code/GridFieldExpandableForm.php index dc8e1b2..0471f74 100644 --- a/code/GridFieldExpandableForm.php +++ b/code/GridFieldExpandableForm.php @@ -46,7 +46,8 @@ class GridFieldExpandableForm_ItemRequest extends RequestHandler { private static $allowed_actions = array( 'edit', 'view', - 'ItemEditForm' + 'ItemEditForm', + 'ExpandableForm' ); static $url_handlers = array(