diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 804a5804245..ad3d2ed96e6 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1757,14 +1757,14 @@ else print ''; // Origine de la demande - print ''; + print ''; print ''; - if ($action != 'editdemandreason' && $object->brouillon) print ''; + if ($_GET['action'] != 'editdemandreason' && $object->brouillon) print ''; print '
'; print $langs->trans('Source'); print 'id.'">'.img_edit($langs->trans('SetDemandReason'),1).'id.'">'.img_edit($langs->trans('SetDemandReason'),1).'
'; - print ''; - if ($action == 'editdemandreason') + print ''; + if ($_GET['action'] == 'editdemandreason') { $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'demand_reason_id',1); } @@ -1772,8 +1772,11 @@ else { $html->form_demand_reason($_SERVER['PHP_SELF'].'?id='.$object->id,$object->demand_reason_id,'none'); } + print ''; + print ''.$langs->trans("DictionnarySource").''; print ''; + // Project if ($conf->projet->enabled) {