From 058c76fb452a7881bc37077f0c241908a6ffdcad Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 10 May 2024 15:35:33 +0200 Subject: [PATCH] Fix aggiunta al volo tags --- modules/tags/actions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/tags/actions.php b/modules/tags/actions.php index 06ca46a28..77d142b1b 100644 --- a/modules/tags/actions.php +++ b/modules/tags/actions.php @@ -53,6 +53,13 @@ switch (post('op')) { flash()->info(tr('Nuovo tag aggiunto!')); } + if (isAjaxRequest()) { + echo json_encode([ + 'id' => $id_record, + 'text' => $nome, + ]); + } + break; case 'delete':