Fix: on ne pouvait pas ajouter un préfix lors d'une modification
This commit is contained in:
parent
55735fa067
commit
55c7787348
@ -2,7 +2,7 @@
|
|||||||
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2007 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -688,7 +688,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
|
|||||||
|
|
||||||
print '<tr><td>'.$langs->trans("Prefix").'</td><td colspan="3">';
|
print '<tr><td>'.$langs->trans("Prefix").'</td><td colspan="3">';
|
||||||
// On ne permet pas la modification du préfix en mode de numérotation auto utilisant le prefix
|
// On ne permet pas la modification du préfix en mode de numérotation auto utilisant le prefix
|
||||||
if ($prefixCustomerIsUsed || $prefixSupplierIsUsed)
|
if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $soc->prefix_comm)
|
||||||
{
|
{
|
||||||
print '<input type="hidden" name="prefix_comm" value="'.$soc->prefix_comm.'">';
|
print '<input type="hidden" name="prefix_comm" value="'.$soc->prefix_comm.'">';
|
||||||
print $soc->prefix_comm;
|
print $soc->prefix_comm;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user