Fix var_dump
This commit is contained in:
parent
77e9f15360
commit
dc81f1de68
@ -2126,7 +2126,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||||||
|
|
||||||
$entity = $conf->entity; // Reset the current entity
|
$entity = $conf->entity; // Reset the current entity
|
||||||
$newvalue = $value;
|
$newvalue = $value;
|
||||||
var_dump($newvalue);
|
|
||||||
// Serialize array parameters
|
// Serialize array parameters
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
// Can defined other parameters
|
// Can defined other parameters
|
||||||
@ -2145,8 +2145,6 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||||||
$newvalue = json_encode($value);
|
$newvalue = json_encode($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var_dump($newvalue);
|
|
||||||
var_dump($this->db->escape($newvalue));
|
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
||||||
$sql .= "name";
|
$sql .= "name";
|
||||||
@ -2164,7 +2162,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
|
|||||||
$sql .= ", '0'";
|
$sql .= ", '0'";
|
||||||
$sql .= ", ".((int) $entity);
|
$sql .= ", ".((int) $entity);
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
print $sql;
|
|
||||||
dol_syslog(get_class($this)."::insert_module_parts for key=".$this->const_name."_".strtoupper($key), LOG_DEBUG);
|
dol_syslog(get_class($this)."::insert_module_parts for key=".$this->const_name."_".strtoupper($key), LOG_DEBUG);
|
||||||
|
|
||||||
$resql = $this->db->query($sql, 1);
|
$resql = $this->db->query($sql, 1);
|
||||||
|
|||||||
@ -1087,7 +1087,7 @@ function migrate_links_transfert($db, $langs, $conf)
|
|||||||
$sql .= $obj->barowid.",".$obj->bbrowid.", '/compta/bank/line.php?rowid=', '(banktransfert)', 'banktransfert'";
|
$sql .= $obj->barowid.",".$obj->bbrowid.", '/compta/bank/line.php?rowid=', '(banktransfert)', 'banktransfert'";
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
|
|
||||||
print $sql.'<br>';
|
//print $sql.'<br>';
|
||||||
dolibarr_install_syslog("migrate_links_transfert");
|
dolibarr_install_syslog("migrate_links_transfert");
|
||||||
|
|
||||||
if (!$db->query($sql)) {
|
if (!$db->query($sql)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user