From 7d121a4a11a63cff00f380ae0d01732454e37195 Mon Sep 17 00:00:00 2001 From: Nestor <npegane@hotmail.com> Date: Thu, 19 Apr 2018 17:32:10 +0200 Subject: [PATCH] FIX #7045 keep template content if content is the same --- apps/maarch_entreprise/getIframeTemplateContent.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/maarch_entreprise/getIframeTemplateContent.php b/apps/maarch_entreprise/getIframeTemplateContent.php index b0f2532ab4e..7ed9d38911a 100755 --- a/apps/maarch_entreprise/getIframeTemplateContent.php +++ b/apps/maarch_entreprise/getIframeTemplateContent.php @@ -64,7 +64,9 @@ $requestTemplateContent = trim(str_replace( )); if ($sessionTemplateContent == $requestTemplateContent) { - $_SESSION['template_content'] = ''; + $_SESSION['template_content'] = $_REQUEST['template_content']; + $_SESSION['template_content'] = str_replace('[dates]', date('d-m-Y'), $_SESSION['template_content']); + $_SESSION['template_content'] = str_replace('[time]', date('G:i:s'), $_SESSION['template_content']); echo "{status : '1, responseText : same content ! '}"; } else { $_SESSION['template_content'] = $_REQUEST['template_content']; -- GitLab