Skip to content
Snippets Groups Projects
Commit 9e1eb480 authored by Peter Rotich's avatar Peter Rotich
Browse files

email: maintain entered data on error

parent 4c2bd09a
Branches
Tags
No related merge requests found
...@@ -48,11 +48,12 @@ if($_POST){ ...@@ -48,11 +48,12 @@ if($_POST){
$errors['err']=__('Error sending email - try again.'); $errors['err']=__('Error sending email - try again.');
} }
} }
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
$nav->setTabActive('emails'); $nav->setTabActive('emails');
$ost->addExtraHeader('<meta name="tip-namespace" content="emails.diagnostic" />', $ost->addExtraHeader('<meta name="tip-namespace" content="emails.diagnostic" />',
"$('#content').data('tipNamespace', '".$tip_namespace."');"); "$('#content').data('tipNamespace', '".$tip_namespace."');");
require(STAFFINC_DIR.'header.inc.php'); require(STAFFINC_DIR.'header.inc.php');
$info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
?> ?>
<form action="emailtest.php" method="post" id="save"> <form action="emailtest.php" method="post" id="save">
<?php csrf_token(); ?> <?php csrf_token(); ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment