Skip to content

Commit 6a30161

Browse files
committed
fix: redirect plugin ricevute fe
1 parent 280c641 commit 6a30161

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/importFE_ZIP/edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function upload1(btn) {
183183
</div>
184184
185185
<div class="btn-group btn-group-sm d-inline-flex">
186-
<button type="button" class="btn btn-warning" onclick="importAll(this)">
186+
<button type="button" class="btn btn-warning" onclick="importAllZip(this)">
187187
<i class="fa fa-cloud-download mr-1"></i> '.tr('Importa tutte').'
188188
</button>';
189189

@@ -238,7 +238,7 @@ function upload1(btn) {
238238

239239
if (Interaction::isEnabled()) {
240240
echo '
241-
function importAll(btn) {
241+
function importAllZip(btn) {
242242
swal({
243243
title: "'.tr('Importare tutte le fatture?').'",
244244
html: "'.tr('Verranno scaricate tutte le fatture da importare, e non sarà più possibile visualizzare altre informazioni oltre al nome per le fatture che non verranno importate completamente. Continuare?').'",
@@ -307,7 +307,7 @@ function importComplete(count, counter, btn, restore) {
307307
}';
308308
} else {
309309
echo '
310-
function importAll(btn) {
310+
function importAllZip(btn) {
311311
redirect(globals.rootdir + "/editor.php?id_module=" + globals.id_module + "&id_plugin=" + '.$id_plugin.' + "&id_record=1&sequence=1");
312312
}';
313313
}

plugins/receiptFE/edit.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
</div>
158158
159159
<div class="btn-group btn-group-sm d-inline-flex">
160-
<button type="button" class="btn btn-warning" onclick="importAll(this)">
160+
<button type="button" class="btn btn-warning" onclick="importAllReceipt(this)">
161161
<i class="fa fa-cloud-download mr-1"></i> '.tr('Importa tutte').'
162162
</button>
163163
@@ -244,8 +244,8 @@ function searchReceipts(button) {
244244
// Mostra un\'animazione di caricamento nella lista
245245
$("#list").html("<div class=\"text-center py-5\"><i class=\"fa fa-refresh fa-spin fa-3x fa-fw text-primary\"></i><div class=\"mt-3\">"+globals.translations.searching+"</div></div>");
246246
247-
// Carica la lista delle ricevute
248-
$("#list").load("'.$structure->fileurl('list.php').'?id_module='.$id_module.'&id_plugin='.$id_plugin.'", function() {
247+
// Carica la lista delle ricevute con parametro per forzare refresh cache
248+
$("#list").load("'.$structure->fileurl('list.php').'?id_module='.$id_module.'&id_plugin='.$id_plugin.'&refresh_cache=" + Date.now(), function() {
249249
buttonRestore(button, restore);
250250
251251
// Applica il filtro di ricerca se presente
@@ -317,7 +317,7 @@ function importMessage(data) {
317317
}
318318
}
319319
320-
function importAll(btn) {
320+
function importAllReceipt(btn) {
321321
swal({
322322
title: "'.tr('Importare tutte le ricevute?').'",
323323
html: "'.tr('Importando le ricevute, verranno aggiornati gli stati di invio delle fatture elettroniche. Continuare?').'",

0 commit comments

Comments
 (0)