Author: nathangray
New Revision: 55737
URL: http://svn.stylite.de/viewvc/egroupware?rev=55737&view=rev
Log:
Fix fatal error when deleting favorites
Modified:
trunk/egroupware/api/src/Framework/Favorites.php
— trunk/egroupware/api/src/Framework/Favorites.php (original)
+++ trunk/egroupware/api/src/Framework/Favorites.php Wed Apr 13 17:01:20 2016
@@ -240,9 +240,9 @@
$pref = $prefs->save_repository(false,$type);
// Update preferences client side, or it could disappear
-
Api\Json\Responseget()->call('egw.set_preferences', (array)$pref[$app], $app);
-
-
Api\Json\Responseget()->data(isset($result[$app][$pref_name]));
-
Api\Json\Response::get()->call('egw.set_preferences', (array)$pref[$app], $app);
-
-
Api\Json\Response::get()->data(isset($result[$app][$pref_name]));
return isset($result[$app][$pref_name]);
}
else if ($action == "delete")
@@ -251,9 +251,9 @@
$pref = $prefs->save_repository(false,$type);
// Update preferences client side, or it could come back
-
Api\Json\Responseget()->call('egw.set_preferences', (array)$pref[$app], $app);
-
-
Api\Json\Responseget()->data(!isset($result[$app][$pref_name]));
-
Api\Json\Response::get()->call('egw.set_preferences', (array)$pref[$app], $app);
-
-
Api\Json\Response::get()->data(!isset($result[$app][$pref_name]));
return !isset($result[$app][$pref_name]);
}
}
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs