From 73062dbfdfc5edd1f657ec7beb52cabac8c19393 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Tue, 12 Nov 2019 17:16:10 +0100 Subject: [PATCH] Correzione #672 --- add.php | 2 +- assets/src/js/functions/select.js | 13 +++++++++++-- modules/articoli/actions.php | 10 ++++++++-- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/add.php b/add.php index 1ca81cd72..d1877e275 100644 --- a/add.php +++ b/add.php @@ -77,7 +77,7 @@ $(document).ready(function(){ // Selezione automatica nuovo valore per il select select = "#'.get('select').'"; if ($(select).val() !== undefined) { - $(select).selectSetNew(response.id, response.text); + $(select).selectSetNew(response.id, response.text, response.data); } $("#bs-popup2").modal("hide"); diff --git a/assets/src/js/functions/select.js b/assets/src/js/functions/select.js index f123163ef..31f64456f 100644 --- a/assets/src/js/functions/select.js +++ b/assets/src/js/functions/select.js @@ -124,12 +124,13 @@ jQuery.fn.selectReset = function (placeholder) { * Aggiorna un