Fix: la modification de la note se fait dans l'onglet "note"
This commit is contained in:
parent
45e516ff7d
commit
75cbdedc2c
@ -178,19 +178,7 @@ if ($_GET["id"] > 0)
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('NotePublic').' :<br>';
|
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('NotePublic').' :<br>';
|
||||||
if ($commande->brouillon == 1 && $user->rights->commande->creer)
|
print nl2br($commande->note_public);
|
||||||
{
|
|
||||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
|
||||||
print '<input type="hidden" name="action" value="setnote">';
|
|
||||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note_public.'</textarea><br>';
|
|
||||||
print '<center><input type="submit" class="button" value="'.$langs->trans('Save').'"></center>';
|
|
||||||
print '</form>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print nl2br($commande->note);
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
@ -178,19 +178,7 @@ if ($_GET["id"] > 0)
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('NotePublic').' :<br>';
|
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans('NotePublic').' :<br>';
|
||||||
if ($commande->brouillon == 1 && $user->rights->commande->creer)
|
print nl2br($commande->note_public);
|
||||||
{
|
|
||||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
|
||||||
print '<input type="hidden" name="action" value="setnote">';
|
|
||||||
print '<textarea name="note" rows="4" style="width:95%;">'.$commande->note_public.'</textarea><br>';
|
|
||||||
print '<center><input type="submit" class="button" value="'.$langs->trans('Save').'"></center>';
|
|
||||||
print '</form>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print nl2br($commande->note);
|
|
||||||
}
|
|
||||||
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user