Fix list portlet not adding new links

This commit is contained in:
Nathan Gray 2013-07-04 20:03:23 +00:00
parent 4d2c969b8f
commit 336490a6ab

View File

@ -354,7 +354,9 @@ app.home = AppJS.extend(
var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container); var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container);
var dialog = et2_dialog.show_dialog( var dialog = et2_dialog.show_dialog(
function(button_id) { function(button_id) {
widget._process_edit(button_id,{list: widget.options.settings.list || {}, add: link.getValue()}); var new_list = widget.options.settings.list || [];
new_list.push(link.getValue());
widget._process_edit(button_id,{list: new_list || [],add: link.getValue()});
link.destroy(); link.destroy();
}, },
'Add', 'Add',