From 4223300ea59376cff2407d9d756d78338ba4fa32 Mon Sep 17 00:00:00 2001 From: yogeshwar <yogeshwar.g@vtigersolutions.com> Date: Fri, 17 May 2024 15:56:16 +0530 Subject: [PATCH] Eall_Leads --- data/VTEntityDelta.php | 1 + include/database/PearDatabase.php | 1 + layouts/v7/modules/Documents/UploadDocument.tpl | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/VTEntityDelta.php b/data/VTEntityDelta.php index 8251517ab..431ece2d1 100644 --- a/data/VTEntityDelta.php +++ b/data/VTEntityDelta.php @@ -134,5 +134,6 @@ class VTEntityDelta extends VTEventHandler { } } +} } ?> diff --git a/include/database/PearDatabase.php b/include/database/PearDatabase.php index dee0f71f7..ea06f9500 100644 --- a/include/database/PearDatabase.php +++ b/include/database/PearDatabase.php @@ -21,6 +21,7 @@ $logsqltm = Logger::getLogger('SQLTIME'); // Callback class useful to convert PreparedStatement Question Marks to SQL value // See function convertPS2Sql in PearDatabase below +#[\AllowDynamicProperties] class PreparedQMark2SqlValue { // Constructor function __construct($vals){ diff --git a/layouts/v7/modules/Documents/UploadDocument.tpl b/layouts/v7/modules/Documents/UploadDocument.tpl index 10ac0db6a..15d42c0e9 100644 --- a/layouts/v7/modules/Documents/UploadDocument.tpl +++ b/layouts/v7/modules/Documents/UploadDocument.tpl @@ -27,7 +27,7 @@ <input type="hidden" name="relationOperation" value="{$RELATION_OPERATOR}" /> <input type="hidden" name="sourceModule" value="{$PARENT_MODULE}" /> <input type="hidden" name="sourceRecord" value="{$PARENT_ID}" /> - {if $RELATION_FIELD_NAME} + {if isset($RELATION_FIELD_NAME)} <input type="hidden" name="{$RELATION_FIELD_NAME}" value="{$PARENT_ID}" /> {/if} {/if} -- GitLab