From 93ed6c90f83cbf60b622fa5f082b25884401ada4 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 29 Jan 2015 10:12:22 +0800 Subject: [PATCH] * fix bug #672. --- module/group/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/group/control.php b/module/group/control.php index fd38a53baa..2f1ffb00b9 100644 --- a/module/group/control.php +++ b/module/group/control.php @@ -62,6 +62,7 @@ class group extends control { $this->group->create(); if(dao::isError()) die(js::error(dao::getError())); + if(isonlybody()) die(js::closeModal('parent.parent', 'this')); die(js::locate($this->createLink('group', 'browse'), 'parent')); } @@ -82,6 +83,7 @@ class group extends control if(!empty($_POST)) { $this->group->update($groupID); + if(isonlybody()) die(js::closeModal('parent.parent', 'this')); die(js::locate($this->createLink('group', 'browse'), 'parent')); }