From 2bebf94b9983eaf782d233b8ac8e6899f08bbef0 Mon Sep 17 00:00:00 2001 From: ThomasNgr-OpenDSI Date: Wed, 10 Jun 2026 20:03:47 +0200 Subject: [PATCH] FIX #38458 : don't let user chose line unit on predefined products (#38460) --- htdocs/core/tpl/objectline_create.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 6dd4f26b305..fa26a09a122 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -1388,7 +1388,7 @@ if (!empty($usemargins) && $user->hasRight('margins', 'creer')) { jQuery("#np_markRate, .np_markRate").hide(); - jQuery("#units, #title_units").hide(); + jQuery("#units, #title_units, .linecoluseunit .selection").hide(); jQuery("#buying_price").show(); jQuery('#trlinefordates, .divlinefordates').show(); }