2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 02:17:21 +02:00
parent ae06b35c63
commit a636f81eac
25 changed files with 333 additions and 658 deletions

View File

@@ -85,14 +85,12 @@ if ($idobject > 0)
// Change status to validated
$result=$com->valid($user);
if ($result > 0) print "OK Object created with id ".$idobject."\n";
else
{
else {
$error++;
dol_print_error($db, $com->error);
}
}
else
{
else {
$error++;
dol_print_error($db, $com->error);
}
@@ -105,8 +103,7 @@ if (! $error)
$db->commit();
print '--- end ok'."\n";
}
else
{
else {
print '--- end error code='.$error."\n";
$db->rollback();
}