Fix: Default project ref was wrong

This commit is contained in:
Laurent Destailleur 2010-03-26 22:11:46 +00:00
parent d1ab91671b
commit 4ba071958d

View File

@ -262,7 +262,7 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
$defaultref = $modProject->getNextValue($soc,$project);
}
if (empty($defaultref)) $defaultref='';
if ($defaultref <= 0) $defaultref='';
// Ref
print '<tr><td><span class="fieldrequired">'.$langs->trans("Ref").'</span></td><td><input size="12" type="text" name="ref" value="'.($_POST["ref"]?$_POST["ref"]:$defaultref).'"></td></tr>';