From 54c5edc5da39fe782e9424451c7dc6420af4e15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Wed, 4 Apr 2018 07:02:02 +0000 Subject: [PATCH] Advanced Search: Auto-complete search on foreign keys SVN:b1162[5600] --- js/searchformforeignkeys.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/searchformforeignkeys.js b/js/searchformforeignkeys.js index b2b4471cbf..5eb58c1cbe 100644 --- a/js/searchformforeignkeys.js +++ b/js/searchformforeignkeys.js @@ -227,7 +227,7 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF // Gather the parameters from the search form var theMap = {}; var context = $('#SearchResultsToAdd_'+me.id); - var selectionMode = $(':input[name=selectionMode]', context); + var selectionMode = $(':input[name="selectionMode"]', context); if (selectionMode.length > 0) { // Paginated table retrieve the mode and the exceptions theMap['selectionMode'] = selectionMode.val(); @@ -235,7 +235,7 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF theMap[this.name] = this.value; }); - $(':input[name^=storedSelection]', context).each(function () { + $(':input[name="storedSelection[]"]', context).each(function () { if (typeof theMap[this.name] === "undefined") { theMap[this.name] = []; } @@ -245,7 +245,7 @@ function SearchFormForeignKeys(id, sTargetClass, sAttCode, oSearchWidgetElmt, sF } // Normal table, retrieve all the checked check-boxes - $(':checked[name^=selectObject]', context).each( + $(':checked[name="selectObject[]"]', context).each( function () { if ((this.name !== '') && ((this.type !== 'checkbox') || (this.checked))) { var arrayExpr = /\[\]$/;