From afd5cf70f0a0fe17af17c6dd07c6d0597da38436 Mon Sep 17 00:00:00 2001 From: Ekta Mishra Date: Sun, 15 Mar 2020 19:19:14 +0530 Subject: [PATCH] Reconciliation UI: property not included if checkbox unchecked (#2413) solves #2230 --- .../scripts/reconciliation/standard-service-panel.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main/webapp/modules/core/scripts/reconciliation/standard-service-panel.js b/main/webapp/modules/core/scripts/reconciliation/standard-service-panel.js index b8c742e98..8d904cb9c 100644 --- a/main/webapp/modules/core/scripts/reconciliation/standard-service-panel.js +++ b/main/webapp/modules/core/scripts/reconciliation/standard-service-panel.js @@ -197,7 +197,7 @@ ReconStandardServicePanel.prototype._populatePanel = function() { var td2 = tr.insertCell(2); $(td0).html(column.name); - $('') + $('') .attr("columnName", column.name) .appendTo(td1); $('') @@ -273,6 +273,7 @@ ReconStandardServicePanel.prototype.start = function() { } var choices = this._panel.find('input[name="type-choice"]:checked'); + var include = this._panel.find('input[name="include"]'); if (choices !== null && choices.length > 0) { if (choices[0].value == '-') { type = null; @@ -287,9 +288,9 @@ ReconStandardServicePanel.prototype.start = function() { var columnDetails = []; $.each( this._panel.find('input[name="property"]'), - function() { + function(index) { var property = $(this).data("data.suggest"); - if (property && property.id) { + if (property && property.id && include[index].checked) { columnDetails.push({ column: this.getAttribute("columnName"), property: { @@ -299,7 +300,7 @@ ReconStandardServicePanel.prototype.start = function() { }); } else { var property = $.trim(this.value); - if (property) { + if (property && include[index].checked) { columnDetails.push({ column: this.getAttribute("columnName"), property: {