From a186a2ac5f3f971022717d3731a6b94f2a49a1a3 Mon Sep 17 00:00:00 2001 From: valentina Date: Fri, 21 Jun 2024 15:41:39 +0200 Subject: [PATCH] Fix campi personalizzati --- add.php | 4 ---- editor.php | 2 +- src/HTMLBuilder/Manager/FieldManager.php | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/add.php b/add.php index c56d95fa5..98f48dc75 100755 --- a/add.php +++ b/add.php @@ -62,10 +62,6 @@ $(document).ready(function(){ last = form.find(".box").last(); } - if (!last.length) { - last = form.find(".card").last(); - } - if (!last.length) { last = form.find(".row").eq(-2); } diff --git a/editor.php b/editor.php index d54d9759f..757a97298 100755 --- a/editor.php +++ b/editor.php @@ -282,7 +282,7 @@ if (empty($record) || !$has_access) { } if (!last.length) { - last = form.find(".row").eq(-2); + last = form.find(".row").last(); } // Campi a inizio form diff --git a/src/HTMLBuilder/Manager/FieldManager.php b/src/HTMLBuilder/Manager/FieldManager.php index 59cacb627..b04440626 100755 --- a/src/HTMLBuilder/Manager/FieldManager.php +++ b/src/HTMLBuilder/Manager/FieldManager.php @@ -99,7 +99,7 @@ class FieldManager implements ManagerInterface } $result .= ' -
+
'.$field['content'].'
';