Fix: Default project ref was wrong
This commit is contained in:
parent
d1ab91671b
commit
4ba071958d
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user