fix survey module
This commit is contained in:
parent
8491be2572
commit
b3dd456a37
@ -39,7 +39,7 @@ $title = GETPOST('title');
|
|||||||
$description = GETPOST('description', 'restricthtml');
|
$description = GETPOST('description', 'restricthtml');
|
||||||
$mailsonde = GETPOST('mailsonde');
|
$mailsonde = GETPOST('mailsonde');
|
||||||
$creation_sondage_date = GETPOST('creation_sondage_date');
|
$creation_sondage_date = GETPOST('creation_sondage_date');
|
||||||
$creation_sondage_date = GETPOST('creation_sondage_date');
|
$creation_sondage_autre = GETPOST('creation_sondage_autre');
|
||||||
|
|
||||||
// We init some session variable to avoir warning
|
// We init some session variable to avoir warning
|
||||||
$session_var = array('title', 'description', 'mailsonde');
|
$session_var = array('title', 'description', 'mailsonde');
|
||||||
@ -53,7 +53,7 @@ $cocheplus = '';
|
|||||||
$cochemail = '';
|
$cochemail = '';
|
||||||
|
|
||||||
// Jump to correct page
|
// Jump to correct page
|
||||||
if (GETPOST("creation_sondage_date") || GETPOST("creation_sondage_autre"))
|
if (!empty($creation_sondage_date) || !empty($creation_sondage_autre))
|
||||||
{
|
{
|
||||||
$_SESSION["title"] = $title;
|
$_SESSION["title"] = $title;
|
||||||
$_SESSION["description"] = $description;
|
$_SESSION["description"] = $description;
|
||||||
@ -98,7 +98,7 @@ if (GETPOST("creation_sondage_date") || GETPOST("creation_sondage_autre"))
|
|||||||
if (!$testdate) {
|
if (!$testdate) {
|
||||||
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv("ExpireDate")), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv("ExpireDate")), null, 'errors');
|
||||||
}
|
}
|
||||||
|
var_dump($creation_sondage_date,$creation_sondage_autre);
|
||||||
if ($title && $testdate)
|
if ($title && $testdate)
|
||||||
{
|
{
|
||||||
if (!empty($creation_sondage_date))
|
if (!empty($creation_sondage_date))
|
||||||
@ -163,7 +163,7 @@ print dol_get_fiche_end();
|
|||||||
|
|
||||||
//focus javascript sur le premier champ
|
//focus javascript sur le premier champ
|
||||||
print '<script type="text/javascript">'."\n";
|
print '<script type="text/javascript">'."\n";
|
||||||
print 'document.formulaire.titre.focus();'."\n";
|
print 'document.formulaire.title.focus();'."\n";
|
||||||
print '</script>'."\n";
|
print '</script>'."\n";
|
||||||
|
|
||||||
print '<br>'."\n";
|
print '<br>'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user