|
|
@@ -172,20 +172,11 @@ class ProcesMenu {
|
|
|
$this->menuAction();
|
|
|
$userAcl = User::getAcl();
|
|
|
|
|
|
- $map = $this->_acl->getUsedProcesMap();
|
|
|
- $menu_to_show = array_keys($map);
|
|
|
- if (empty($menu_to_show)) {
|
|
|
+ $procesy_init_ids = $this->_acl->getUsedProcesInitList();
|
|
|
+ if (empty($procesy_init_ids)) {
|
|
|
echo '<p>' . "Brak przypisanych procesów." . '</p>';
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- $procesy_init_ids = array();
|
|
|
- $db = DB::getDB();
|
|
|
- $sql = "select `ID`,`DESC` from `CRM_PROCES` where `TYPE`='PROCES_INIT' and `ID` in (".implode(",", $menu_to_show).") ";
|
|
|
- $res = $db->query($sql);
|
|
|
- while ($r = $db->fetch($res)) {
|
|
|
- $procesy_init_ids[$r->ID] = $r->DESC;
|
|
|
- }
|
|
|
?>
|
|
|
<style type="text/css">
|
|
|
.tbl-wyniki-testow {}
|
|
|
@@ -370,7 +361,7 @@ class ProcesMenu {
|
|
|
$treeZasobyFilter = FilterFactory::build('CRM_LISTA_ZASOBOW');
|
|
|
$lastZasobyFiltrIds = $treeZasobyFilter->get_arg('filtr_id');
|
|
|
|
|
|
- $userProcesIdsCSV = array();//TODO: get user proces init ids
|
|
|
+ $userProcesIdsCSV = $this->_acl->getUsedProcesInitIds();
|
|
|
$userProcesIdsCSV = implode(',', $userProcesIdsCSV);
|
|
|
|
|
|
$typeSpecialProces = TypespecialVariable::getInstance(-1, '__PROCES');
|