diff --git a/core/tpl/attendants/attendants_table_add_view.tpl.php b/core/tpl/attendants/attendants_table_add_view.tpl.php index 51cbea7a..93619d74 100644 --- a/core/tpl/attendants/attendants_table_add_view.tpl.php +++ b/core/tpl/attendants/attendants_table_add_view.tpl.php @@ -33,6 +33,7 @@ print '
'; print ''; print ''; + print ''; if ($attendantTableMode == 'advanced') { print ''; } @@ -63,7 +64,7 @@ } print ''; print ''; - print ''; + print ''; print ''; print ''; print '
'; diff --git a/core/tpl/attendants/attendants_table_view.tpl.php b/core/tpl/attendants/attendants_table_view.tpl.php index f3471c9e..50f8e7a8 100644 --- a/core/tpl/attendants/attendants_table_view.tpl.php +++ b/core/tpl/attendants/attendants_table_view.tpl.php @@ -178,7 +178,8 @@ print ''; print ''; print ''; - print ''; print ''; diff --git a/view/saturne_attendants.php b/view/saturne_attendants.php index 6800846a..be07fcb6 100644 --- a/view/saturne_attendants.php +++ b/view/saturne_attendants.php @@ -34,6 +34,7 @@ $moduleName = GETPOST('module_name', 'alpha'); $objectType = GETPOST('object_type', 'alpha'); $documentType = GETPOST('document_type', 'alpha'); +$pageY = GETPOST('page_y', 'int'); $moduleNameLowerCase = strtolower($moduleName); @@ -136,7 +137,7 @@ setEventMessages($langs->trans('AddAttendantMessage', $langs->transnoentities($attendantRole) . ' ' . $contact->getFullName($langs, 1)), []); } // Prevent form reloading page - header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&module_name=' . $moduleName . '&object_type=' . $object->element . '&document_type=' . $documentType . '&attendant_table_mode=' . $attendantTableMode); + header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&module_name=' . $moduleName . '&object_type=' . $object->element . '&document_type=' . $documentType . '&attendant_table_mode=' . $attendantTableMode . '&page_y=' . $pageY); exit; } elseif (!empty($signatory->errors)) { // Creation attendant KO @@ -279,7 +280,7 @@ if ($result > 0) { setEventMessages($langs->trans('DeleteAttendantMessage', $langs->transnoentities($signatory->role) . ' ' . strtoupper($signatory->lastname) . ' ' . $signatory->firstname), []); // Prevent form reloading page - header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&module_name=' . $moduleName . '&object_type=' . $object->element . '&document_type=' . $documentType . '&attendant_table_mode=' . $attendantTableMode); + header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&module_name=' . $moduleName . '&object_type=' . $object->element . '&document_type=' . $documentType . '&attendant_table_mode=' . $attendantTableMode . '&page_y=' . $pageY); exit; } elseif (!empty($signatory->errors)) { // Deletion attendant KO