From ddf960e1c4c5fac760acfeb92cebe9fb2fdd740b Mon Sep 17 00:00:00 2001 From: atm-lena Date: Wed, 13 Dec 2023 14:32:58 +0100 Subject: [PATCH] Add contact to project and tasks : formconfirm get url too long --- htdocs/projet/contact.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/contact.php b/htdocs/projet/contact.php index be130572704..e7b18c749ce 100644 --- a/htdocs/projet/contact.php +++ b/htdocs/projet/contact.php @@ -126,7 +126,7 @@ if ($action == 'addcontact') { $formquestion[] = array('type'=> 'other', 'name'=>'tasksavailable', 'label'=>'', 'value' => ''); } - $formconfirmtoaddtasks = $form->formconfirm($_SERVER['PHP_SELF'] . $url_redirect, $text, '', 'addcontact_confirm', $formquestion, '', 1, 300, 590); + $formconfirmtoaddtasks = $form->formconfirm($_SERVER['PHP_SELF'] . $url_redirect, $text, '', 'addcontact_confirm', $formquestion, '', ((count($formquestion) > 10) ? 0 : 1), 300, 590); $formconfirmtoaddtasks .='