2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 15:05:19 +02:00
parent b58060f899
commit b41ac00b98
961 changed files with 9487 additions and 19110 deletions

View File

@@ -91,8 +91,7 @@ if ($idobject > 0)
$error++;
dol_print_error($db, $obj->error);
}
}
else {
} else {
$error++;
dol_print_error($db, $obj->error);
}
@@ -104,8 +103,7 @@ if (! $error)
{
$db->commit();
print '--- end ok'."\n";
}
else {
} else {
print '--- end error code='.$error."\n";
$db->rollback();
}

View File

@@ -89,8 +89,7 @@ if ($idobject > 0)
$error++;
dol_print_error($db, $com->error);
}
}
else {
} else {
$error++;
dol_print_error($db, $com->error);
}
@@ -102,8 +101,7 @@ if (! $error)
{
$db->commit();
print '--- end ok'."\n";
}
else {
} else {
print '--- end error code='.$error."\n";
$db->rollback();
}

View File

@@ -82,8 +82,7 @@ $idobject = $myproduct->create($user);
if ($idobject > 0)
{
print "OK Object created with id ".$idobject."\n";
}
else {
} else {
$error++;
dol_print_error($db, $myproduct->error);
}
@@ -94,8 +93,7 @@ if (! $error)
{
$db->commit();
print '--- end ok'."\n";
}
else {
} else {
print '--- end error code='.$error."\n";
$db->rollback();
}

View File

@@ -78,12 +78,10 @@ if ($idobject > 0)
$error++;
dol_print_error($db, $obj->error);
}
}
elseif ($obj->error == 'ErrorLoginAlreadyExists')
} elseif ($obj->error == 'ErrorLoginAlreadyExists')
{
print "User with login ".$obj->login." already exists\n";
}
else {
} else {
$error++;
dol_print_error($db, $obj->error);
}
@@ -95,8 +93,7 @@ if (! $error)
{
$db->commit();
print '--- end ok'."\n";
}
else {
} else {
print '--- end error code='.$error."\n";
$db->rollback();
}