From 802d4c5282e6e80007e41b669dad50b9afdb4451 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 15 May 2014 13:14:09 +0000 Subject: [PATCH] * ProjectManager: fixed parent projects were not updated with changes (you had to run sync-all manually caused by running notifications delayed after response is send to user and to taking into account new notifications generated by notified apps --- phpgwapi/inc/class.egw_link.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index 3f42a1be3d..384a7027d6 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -1397,14 +1397,15 @@ class egw_link extends solink */ static public function run_notifies() { - foreach(self::$notifies as $args) + //error_log(__METHOD__."() count(self::\$notifies)=".count(self::$notifies)); + while(self::$notifies) { + $args = array_shift(self::$notifies); $method = $args['method']; unset($args['method']); //error_log(__METHOD__."() calling $method(".array2string($args).')'); ExecMethod($method, $args); } - self::$notifies = array(); } /**