From 545db7f204e8c288f87d50e615ef4fe4ef404f16 Mon Sep 17 00:00:00 2001 From: Torsten Baldes Date: Fri, 24 Oct 2014 00:29:30 +0200 Subject: [PATCH] don't show options if form is in a modal The options showed up in the PageTable modals which was quite confusing for my editors. --- AdminSaveActions.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdminSaveActions.module b/AdminSaveActions.module index 31da6b1..df793c2 100644 --- a/AdminSaveActions.module +++ b/AdminSaveActions.module @@ -129,8 +129,8 @@ class AdminSaveActions extends WireData implements Module, ConfigurableModule { // don't do a thing if template has just been changed if($this->page->process == 'ProcessPageEdit' && $this->input->get->template) return; - // don't do a thing if we're editing a field from inside a template - if($this->input->get->process_template && $this->input->get->modal) return; + // don't do a thing if we're in a modal + if($this->input->get->modal) return; // we're about to really do something so let's initialize some more