bug #4332 bug in the name

This commit is contained in:
sparkyx 2005-07-27 18:03:36 +00:00
parent 2993c11f13
commit 2ab79279fd
2 changed files with 4 additions and 3 deletions

View file

@ -78,6 +78,6 @@ function MakeListingVat($p_cn,$p_array,$p_year) {
$a.="BE";
$a.=$my->MY_TVA;
$a.=str_repeat(" ",28);
$a.="\n";
$a.="\r\n";
return $a;
}
}

View file

@ -307,7 +307,8 @@ function AddForm($p_cn,$p_array) {
echo_error("Nom ou ligne non défini");
return;
}
$sql="insert into formdef (fr_label) values ('".FormatString($form_nom)."')";
$form_nom=(FormatString($form_nom)==null)?"NoName":FormatString($form_nom);
$sql="insert into formdef (fr_label) values ('".$form_nom."')";
$Res=ExecSql($p_cn,$sql);
$n=GetSequence($p_cn,"s_formdef");