From 52c0782447e19209c96ea36e1f62cc0284ada947 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Wed, 11 Dec 2019 15:05:02 +0100 Subject: [PATCH] Fix checklist update --- .../repositories/renderers/columns/checklist.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/repositories/renderers/columns/checklist.js b/app/assets/javascripts/repositories/renderers/columns/checklist.js index e136109f8..39bbf88df 100644 --- a/app/assets/javascripts/repositories/renderers/columns/checklist.js +++ b/app/assets/javascripts/repositories/renderers/columns/checklist.js @@ -20,10 +20,18 @@ var ChecklistColumnHelper = (function() { } function checklistHiddenField(formId, columnId, values) { + var idList = []; + if (values) { + $.each(values, function(i, option) { + idList.push(option.value); + }); + } else { + idList = ''; + } return $(``); }