2
0
forked from Wavyzz/dolibarr

FIX auto open contract if one result found

This commit is contained in:
Laurent Destailleur
2018-03-24 18:28:06 +01:00
parent 630ed04e17
commit 6ef1dbbe0f
6 changed files with 451 additions and 464 deletions

View File

@@ -470,14 +470,23 @@ class MyObject extends CommonObject
{
global $conf, $langs;
//$conf->global->SYSLOG_FILE = 'DOL_DATA_ROOT/dolibarr_mydedicatedlofile.log';
$error = 0;
$this->output = '';
$this->error='';
dol_syslog(__METHOD__, LOG_DEBUG);
$now = dol_now();
$this->db->begin();
// ...
return 0;
$this->db->commit();
return $error;
}
}