Fix: bugs reported by scrutinizer
This commit is contained in:
parent
3800f22d93
commit
f4a63b498b
@ -31,6 +31,7 @@ class BookKeeping
|
||||
{
|
||||
var $db;
|
||||
var $error;
|
||||
var $errors;
|
||||
|
||||
var $id;
|
||||
var $doc_date;
|
||||
|
||||
@ -535,8 +535,7 @@ class ExtraFields
|
||||
$array_name_label=array();
|
||||
|
||||
// For avoid conflicts with external modules
|
||||
if (!$forceload && !empty($conf->global->MAIN_EXTRAFIELDS_DISABLED))
|
||||
return $array_name_label;
|
||||
if (!$forceload && !empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) return $array_name_label;
|
||||
|
||||
$sql = "SELECT rowid,name,label,type,size,elementtype,fieldunique,fieldrequired,param,pos,alwayseditable";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."extrafields";
|
||||
@ -569,13 +568,13 @@ class ExtraFields
|
||||
$this->attribute_alwayseditable[$tab->name]=$tab->alwayseditable;
|
||||
}
|
||||
}
|
||||
|
||||
return $array_name_label;
|
||||
}
|
||||
else
|
||||
{
|
||||
print dol_print_error($this->db);
|
||||
}
|
||||
|
||||
return $array_name_label;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -204,3 +204,13 @@ UPDATE llx_projet_task_time set task_datehour = task_date where task_datehour IS
|
||||
-- GRANT ALL ON *.* TO 'myuser'@'%';
|
||||
-- flush privileges;
|
||||
|
||||
-- Fix type of product 2 does not exists
|
||||
update llx_propaldet set product_type = 1 where product_type = 2;
|
||||
update llx_commandedet set product_type = 1 where product_type = 2;
|
||||
update llx_facturedet set product_type = 1 where product_type = 2;
|
||||
--update llx_propaldet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
||||
--update llx_commandedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
||||
--update llx_facturedet as d set d.product_type = 1 where d.fk_product = 22 and d.product_type = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user