From ad7e5f3eafa58f896b219ae3af48ecdae12fda5d Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 21 Nov 2014 14:32:13 +0000 Subject: [PATCH] Make sure ArrayInput works with undefined as value --- source/UI/js/Form/ArrayInput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/UI/js/Form/ArrayInput.js b/source/UI/js/Form/ArrayInput.js index 93955ce4..6ffac162 100644 --- a/source/UI/js/Form/ArrayInput.js +++ b/source/UI/js/Form/ArrayInput.js @@ -30,6 +30,8 @@ Ox.ArrayInput = function(options, self) { width: setWidths }); + self.options.value = self.options.value || []; + if (self.options.label) { self.$label = Ox.Label({ title: self.options.label,