From dae37d17a836bcb10681f3b6d6304c3bcfaa55e2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 11 Jul 2013 15:34:30 +0000 Subject: [PATCH] fix JSON error in trunk with readonly fileas-type selector (AD) --- addressbook/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 4c308cb172..573821e529 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -147,9 +147,9 @@ function check_value(input, own_id) selbox.options[i].text = data.fileas_options[i]; } } - else + else if (template && (selbox = template.widgetContainer.getWidgetById('fileas_type'))) { - template.widgetContainer.getWidgetById('fileas_type').set_select_options(data.fileas_sel_options); + selbox.set_select_options(data.fileas_sel_options); } } });