Task #2321: Sécurité : empêcher changement de numéro de pièce

This commit is contained in:
sparkyx 2024-02-02 16:11:18 +01:00
parent bab6b76a67
commit 5431982223
10 changed files with 467 additions and 454 deletions

View file

@ -59,6 +59,8 @@ global $div,$g_parameter,$cn,$access,$jr_id,$obj;
<td>
<?php
$itext = new IText('npj');
if ($owner->MY_PJ_SUGGEST=='A' || $g_user->check_action(UPDRECEIPT)==0)
$itext->setReadOnly(true);
$itext->value = strip_tags($obj->det->jr_pj_number);
echo td(_('Pièce')) . td($itext->input());
?>