fix stickler
This commit is contained in:
parent
dd19da66b2
commit
7fb0eb5756
@ -193,7 +193,7 @@ $coldisplay++;
|
||||
{
|
||||
$unit_type = false;
|
||||
// limit unit select to unit type
|
||||
if(!empty($line->fk_unit) && empty($conf->global->MAIN_EDIT_LINE_ALLOW_ALL_UNIT_TYPE)){
|
||||
if (!empty($line->fk_unit) && empty($conf->global->MAIN_EDIT_LINE_ALLOW_ALL_UNIT_TYPE)){
|
||||
if (!class_exists('CUnits')) include_once DOL_DOCUMENT_ROOT . '/core/class/cunits.class.php';
|
||||
$cUnit = new CUnits($line->db);
|
||||
if ($cUnit->fetch($line->fk_unit) > 0){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user