From 6cbe332a3678ce3e394c2f868c8aaa4f6a8bd374 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 12 Oct 2015 23:58:59 +0200 Subject: [PATCH] Improved input validation. --- .../app/controllers/_ui_element/ticket_selector.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee index dbb7a695f..388e43a54 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_selector.coffee @@ -184,7 +184,7 @@ class App.UiElement.ticket_selector item = '' if config && App.UiElement[config.tag] config['name'] = name - if attribute.value[groupAndAttribute] + if attribute.value && attribute.value[groupAndAttribute] config['value'] = _.clone(attribute.value[groupAndAttribute]['value']) if 'multiple' of config config.multiple = true