Removed projekt color lookup because some module tables have no projekt id

This commit is contained in:
Xenomporio 2022-05-23 13:11:45 +02:00
parent 87daa014d3
commit 86165a06bf

View File

@ -774,14 +774,20 @@ class erpooSystem extends Application
/*********** select field for projekt ***************/
$selectid = $this->Secure->GetPOST('projekt');
if($selectid=='' && $module !== 'projekt') {
if(!empty($this->Conf->WFdbType) && $this->Conf->WFdbType==='postgre')
/*
Removed because of module tables that have no projekt id
if(!empty($this->Conf->WFdbType) && $this->Conf->WFdbType==='postgre')
{
//POSTGRE --> dringend bei statements wo es die tabelle gibt machen!
$selectid = $this->DB->Select("SELECT projekt FROM `$module` WHERE id='$id' LIMIT 1");
} else {
$selectid = $id > 0?$this->DB->Select("SELECT projekt FROM `$module` WHERE id='$id' LIMIT 1"):NULL;
}
}*/
}
$color_selected = '';