From 6ce2b54a3a49a9a8e47a378dd1a38adfabd2ffbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Wed, 9 Aug 2023 18:01:02 +0200 Subject: [PATCH] Asked change made --- htdocs/ticket/card.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index d03ecf4b902..134ef391e6a 100755 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -4,7 +4,7 @@ * Copyright (C) 2018 Laurent Destailleur * Copyright (C) 2021 Frédéric France * Copyright (C) 2021 Alexandre Spangaro - * Copyright (C) 2022 Charlene Benke + * Copyright (C) 2022-2023 Charlene Benke * Copyright (C) 2023 Benjamin Falière * * This program is free software; you can redistribute it and/or modify @@ -806,7 +806,7 @@ if ($action == 'create' || $action == 'presend') { print ''; */ } 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 .= '
'; - $morehtmlref .= $langs->trans('Contract'); - if ($action != 'contrat') { - $morehtmlref .= 'id.'">'; + if ($action != 'edit_contrat') { + $morehtmlref .= 'id.'">'; $morehtmlref .= img_edit($langs->trans('SetContract'), 1); $morehtmlref .= ''; } - 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 {