Merge branch '4.0' of git@github.com:Dolibarr/dolibarr.git into 4.0
This commit is contained in:
commit
0c342284f0
@ -4173,7 +4173,9 @@ abstract class CommonObject
|
||||
$object = new $InfoFieldList[0]($this->db);
|
||||
if ($value)
|
||||
{
|
||||
$res=$object->fetch(0,$value);
|
||||
if (is_numeric($value)) $res=$object->fetch($value);
|
||||
else $res=$object->fetch('',$value);
|
||||
|
||||
if ($res > 0) $this->array_options[$key]=$object->id;
|
||||
else
|
||||
{
|
||||
|
||||
@ -168,7 +168,7 @@ class Utils
|
||||
|
||||
// Check type parameter
|
||||
if ($type == 'auto') $type = $db->type;
|
||||
if (! in_array($type, array('pgsql', 'mysql', 'mysqli')))
|
||||
if (! in_array($type, array('pgsql', 'mysql', 'mysqli','mysqlnobin')))
|
||||
{
|
||||
$langs->load("errors");
|
||||
$this->error=$langs->transnoentitiesnoconv("ErrorBadValueForParameter", $type, "Basetype");
|
||||
|
||||
@ -23,5 +23,5 @@ CREATE TABLE llx_multicurrency_rate
|
||||
date_sync datetime DEFAULT NULL,
|
||||
rate double NOT NULL DEFAULT 0,
|
||||
fk_multicurrency integer NOT NULL,
|
||||
entity integer DEFAULT 1,
|
||||
) ENGINE=innodb;
|
||||
entity integer DEFAULT 1
|
||||
) ENGINE=innodb;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user