From a577ff0180243b6a90c3a2316c0bf7595dfec4f2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 Aug 2014 16:54:45 +0000 Subject: [PATCH] * All apps: current user was not taken into account for private custom-fields --- phpgwapi/inc/class.egw_customfields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_customfields.inc.php b/phpgwapi/inc/class.egw_customfields.inc.php index f551fec137..be02f8f3ab 100755 --- a/phpgwapi/inc/class.egw_customfields.inc.php +++ b/phpgwapi/inc/class.egw_customfields.inc.php @@ -127,7 +127,7 @@ class egw_customfields implements IteratorAggregate */ public static function get($app, $all_private_too=false, $only_type2=null) { - $cache_key = $app.':'.(bool)$all_private_too.':'.$only_type2; + $cache_key = $app.':'.($all_private_too?'all':$GLOBALS['egw_info']['user']['account_id']).':'.$only_type2; $cfs = egw_cache::getInstance(__CLASS__, $cache_key); if (!isset($cfs))