From 32afd1515fef55cde6866277a3bd40b0d7e7cdb5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 29 Jun 2024 13:27:36 +0200 Subject: [PATCH] Debug v20 --- htdocs/core/tpl/objectline_title.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_title.tpl.php b/htdocs/core/tpl/objectline_title.tpl.php index a5c95f91d3d..ca1cf385264 100644 --- a/htdocs/core/tpl/objectline_title.tpl.php +++ b/htdocs/core/tpl/objectline_title.tpl.php @@ -167,7 +167,7 @@ if ($usemargins && isModEnabled('margin') && empty($user->socid)) { if (getDolGlobalString('DISPLAY_MARGIN_RATES') && $user->hasRight('margins', 'liretous')) { print ''.$langs->trans('MarginRate'); - if ($user->hasRight("propal", "creer")) { + if ($object->status == $object::STATUS_DRAFT && $user->hasRight("propal", "creer")) { print 'id.'">'.img_edit($langs->trans("UpdateForAllLines"), 0, 'class="clickmarginforalllines opacitymedium paddingleft cursorpointer"').''; if (GETPOST('mode', 'aZ09') == 'marginforalllines') { print '
';