From d8487a750780af514f28ec73ee1555a389d33547 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 5 Oct 2015 20:02:11 +0000 Subject: [PATCH] Fix refresh & updates when working on personal categories --- admin/inc/class.admin_categories.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index 69a06f2a56..28f23caa62 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -177,7 +177,7 @@ class admin_categories } if ($button == 'save') { - egw_framework::refresh_opener($msg, $refresh_app, $content['id'], $change_color ? 'edit' : 'update', 'admin'); + egw_framework::refresh_opener($msg, $refresh_app, $content['id'], $change_color ? 'edit' : 'update', $this->appname); egw_framework::window_close(); } break; @@ -187,8 +187,8 @@ class admin_categories { $cats->delete($content['id'],$delete_subs,!$delete_subs); $msg = lang('Category deleted.'); - // Refresh internally looks for template name, which starts with 'admin' - egw_framework::refresh_opener($msg, $refresh_app, $content['id'],'delete', 'admin'); + + egw_framework::refresh_opener($msg, $refresh_app, $content['id'],'delete', $this->appname); egw_framework::window_close(); return; } @@ -199,8 +199,8 @@ class admin_categories } break; } - // Refresh internally looks for template name, which starts with 'admin' - egw_framework::refresh_opener($msg, $refresh_app, $content['id'], $change_color ? 'edit' : 'update', 'admin'); + + egw_framework::refresh_opener($msg, $refresh_app, $content['id'], $change_color ? 'edit' : 'update', $this->appname); } $content['msg'] = $msg; if(!$content['appname']) $content['appname'] = $appname; @@ -529,7 +529,7 @@ class admin_categories { $msg .= lang('%1 category(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed); } - egw_framework::refresh_opener($msg, 'admin'); + egw_framework::refresh_opener($msg, $this->appname); $msg = ''; } }