fixing r53501: group-favorite has escaped name visible after reload

This commit is contained in:
Ralf Becker 2015-08-27 11:40:18 +00:00
parent 4615c6c3db
commit cb58e015ac
2 changed files with 2 additions and 1 deletions

View File

@ -231,6 +231,7 @@ class egw_favorites
'group' => $group ? $group : false,
'state' => $filters
);
$pref_name = "favorite_".preg_replace('/[^A-Za-z0-9-_]/','_',$name);
$result = $prefs->add($app,$pref_name,$filters,$type);
$pref = $prefs->save_repository(false,$type);

View File

@ -614,7 +614,7 @@ var AppJS = Class.extend(
self.egw.jsonq(self.appname+'.egw_framework.ajax_set_favorite.template',
[
self.appname,
safe_name,
name.val(),
"add",
self.favorite_popup.group.get_value(),
self.favorite_popup.state