From 336490a6ab522f169d00e5421dd4b8aeb3cf5596 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 4 Jul 2013 20:03:23 +0000 Subject: [PATCH] Fix list portlet not adding new links --- home/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/js/app.js b/home/js/app.js index 525cc22b86..568df51196 100644 --- a/home/js/app.js +++ b/home/js/app.js @@ -354,7 +354,9 @@ app.home = AppJS.extend( var link = et2_createWidget('link-entry', {label: egw.lang('Add')}, this.portlet_container); var dialog = et2_dialog.show_dialog( 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(); }, 'Add',