From 629b393c07642c8cbaaa6f0cea905e30bcedb182 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 15 May 2014 13:12:28 +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 a1345e8fa8..68546344e0 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -1344,14 +1344,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(); } /**