- Added two new functions to config entry ou_function_whitelist

- Fixed Vorlage_widget to retrieve univocally templates
This commit is contained in:
Paolo
2020-03-09 13:41:17 +01:00
parent 88fc901bf7
commit 9bb4e2507a
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ $config['ou_receivers_no_notice'] = array('infocenter');
// Organization units that will not send the notice email to the internal account, but to the private one
$config['ou_receivers_private'] = array('eac', 'ewu', 'scs');
//
$config['ou_function_whitelist'] = array('ass', 'Leitung');
$config['ou_function_whitelist'] = array('ass', 'Leitung', 'fachzuordnung', 'oezuordnung');
$config['message_redirect_url'] = array();
$config['message_redirect_url']['fallback'] = site_url('system/messages/ViewMessage/writeReply');
+6 -2
View File
@@ -136,7 +136,8 @@ class Vorlage_widget extends DropdownWidget
{
$currentTmpVorlageData = getData($tmpVorlage)[$j];
if (getData($vorlage)[$i]->_pk == getData($tmpVorlage)[$j]->_pk
if (getData($vorlage)[$i]->id == getData($tmpVorlage)[$j]->id
&& getData($vorlage)[$i]->_pk == getData($tmpVorlage)[$j]->_pk
&& getData($vorlage)[$i]->_ppk == getData($tmpVorlage)[$j]->_ppk
&& getData($vorlage)[$i]->_jtpk == getData($tmpVorlage)[$j]->_jtpk)
{
@@ -145,7 +146,10 @@ class Vorlage_widget extends DropdownWidget
}
}
if (!$found && $currentTmpVorlageData->id != '') array_push($vorlage->retval, $currentTmpVorlageData);
if (!$found && $currentTmpVorlageData->id != '')
{
array_push($vorlage->retval, $currentTmpVorlageData);
}
}
}
}