Asked change made
This commit is contained in:
parent
8539fa5cfa
commit
6ce2b54a3a
1 changed files with 5 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2021 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2021 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
|
||||
* Copyright (C) 2022-2023 Charlene Benke <charlene@patas-monkey.com>
|
||||
* Copyright (C) 2023 Benjamin Falière <benjamin.faliere@altairis.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -806,7 +806,7 @@ if ($action == 'create' || $action == 'presend') {
|
|||
|
||||
print '</form>'; */
|
||||
} elseif (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'dellink' || $action == 'presend' || $action == 'presend_addmessage' || $action == 'close' || $action == 'abandon' || $action == 'delete' || $action == 'editcustomer' || $action == 'progression' || $action == 'categories' || $action == 'reopen'
|
||||
|| $action== 'contrat' || $action == 'editsubject' || $action == 'edit_extras' || $action == 'update_extras' || $action == 'edit_extrafields' || $action == 'set_extrafields' || $action == 'classify' || $action == 'sel_contract' || $action == 'edit_message_init' || $action == 'set_status' || $action == 'dellink') {
|
||||
|| $action== 'edit_contrat' || $action == 'editsubject' || $action == 'edit_extras' || $action == 'update_extras' || $action == 'edit_extrafields' || $action == 'set_extrafields' || $action == 'classify' || $action == 'sel_contract' || $action == 'edit_message_init' || $action == 'set_status' || $action == 'dellink') {
|
||||
if ($res > 0) {
|
||||
// or for unauthorized internals users
|
||||
if (!$user->socid && (!empty($conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY) && $object->fk_user_assign != $user->id) && !$user->rights->ticket->manage) {
|
||||
|
|
@ -1005,15 +1005,14 @@ if ($action == 'create' || $action == 'presend') {
|
|||
if (isModEnabled('contrat')) {
|
||||
$langs->load('contracts');
|
||||
$morehtmlref .= '<br>';
|
||||
|
||||
$morehtmlref .= $langs->trans('Contract');
|
||||
|
||||
if ($action != 'contrat') {
|
||||
$morehtmlref .= '<a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=contrat&id='.$object->id.'">';
|
||||
if ($action != 'edit_contrat') {
|
||||
$morehtmlref .= '<a class="editfielda" href="'.$_SERVER["PHP_SELF"].'?action=edit_contrat&token='.newToken().'&id='.$object->id.'">';
|
||||
$morehtmlref .= img_edit($langs->trans('SetContract'), 1);
|
||||
$morehtmlref .= '</a>';
|
||||
}
|
||||
if ($action == 'contrat') {
|
||||
if ($action == 'edit_contrat') {
|
||||
$formcontract = new Formcontract($db);
|
||||
$morehtmlref .= $formcontract->formSelectContract($_SERVER["PHP_SELF"].'?id='.$object->id, $object->socid, $object->fk_contract, 'contratid', 0, 1, 1,1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue