Commit c396ca82 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix form paths; closes #3896 and closes #3867

parent 6bfe61e1
......@@ -105,12 +105,12 @@ class Auth extends CommonGLPI {
$menu['options']['ldap']['title'] = AuthLDAP::getTypeName(Session::getPluralNumber());
$menu['options']['ldap']['page'] = '/front/authldap.php';
$menu['options']['ldap']['links']['search'] = '/front/authldap.php';
$menu['options']['ldap']['links']['add'] = AuthLDAP::getFormURL();
$menu['options']['ldap']['links']['add'] = AuthLDAP::getFormURL(false);
$menu['options']['imap']['title'] = AuthMail::getTypeName(Session::getPluralNumber());
$menu['options']['imap']['page'] = '/front/authmail.php';
$menu['options']['imap']['links']['search'] = '/front/authmail.php';
$menu['options']['imap']['links']['add'] = AuthMail::getFormURL();
$menu['options']['imap']['links']['add'] = AuthMail::getFormURL(false);
$menu['options']['others']['title'] = __('Others');
$menu['options']['others']['page'] = '/front/auth.others.php';
......
......@@ -60,7 +60,7 @@ class Control extends CommonGLPI {
if (static::canView()) {
$options['FieldUnicity']['title'] = __('Fields unicity');
$options['FieldUnicity']['page'] = FieldUnicity::getSearchURL();
$options['FieldUnicity']['links']['add'] = FieldUnicity::getFormURL();
$options['FieldUnicity']['links']['add'] = FieldUnicity::getFormURL(false);
$options['FieldUnicity']['links']['search'] = FieldUnicity::getSearchURL();
return $options;
......
......@@ -158,7 +158,7 @@ class Notification extends CommonDBTM {
$menu['page'] = '/front/setup.notification.php';
$menu['options']['notification']['title'] = _n('Notification', 'Notifications', Session::getPluralNumber());
$menu['options']['notification']['page'] = '/front/notification.php';
$menu['options']['notification']['links']['add'] = Notification::getFormURL();
$menu['options']['notification']['links']['add'] = Notification::getFormURL(false);
$menu['options']['notification']['links']['search'] = '/front/notification.php';
$menu['options']['notificationtemplate']['title']
......@@ -166,7 +166,7 @@ class Notification extends CommonDBTM {
$menu['options']['notificationtemplate']['page']
= '/front/notificationtemplate.php';
$menu['options']['notificationtemplate']['links']['add']
= NotificationTemplate::getFormURL();
= NotificationTemplate::getFormURL(false);
$menu['options']['notificationtemplate']['links']['search']
= '/front/notificationtemplate.php';
......
......@@ -225,7 +225,7 @@ class Project extends CommonDBTM {
$links[$pic_validate] = '/front/projecttask.php';
$links['summary'] = Project::getFormURL().'?showglobalgantt=1';
$links['summary'] = Project::getFormURL(false).'?showglobalgantt=1';
}
if (count($links)) {
return $links;
......
......@@ -236,7 +236,7 @@ class Rule extends CommonDBTM {
if (Session::haveRightsOr("transfer", [CREATE, UPDATE])) {
$menu['rule']['options']['transfer']['links']['summary']
= "/front/transfer.action.php";
$menu['rule']['options']['transfer']['links']['add'] = Transfer::getFormURL();
$menu['rule']['options']['transfer']['links']['add'] = Transfer::getFormURL(false);
}
}
......
......@@ -183,7 +183,7 @@ class SLM extends CommonDBTM {
$menu['page'] = '/front/slm.php';
$menu['links']['search'] = '/front/slm.php';
if (static::canCreate()) {
$menu['links']['add'] = Slm::getFormURL();
$menu['links']['add'] = Slm::getFormURL(true);
}
$menu['options']['sla']['title'] = SLA::getTypeName(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment