From 9effd11fcdf113368081e8ec8286d462a354b60b Mon Sep 17 00:00:00 2001 From: bison-paolo Date: Thu, 13 Oct 2016 17:57:19 +0200 Subject: [PATCH] Moved the assistent function name in the message config file --- application/config/message.php | 1 + application/libraries/MessageLib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/config/message.php b/application/config/message.php index 55caee1fe..73d81a8f8 100644 --- a/application/config/message.php +++ b/application/config/message.php @@ -7,6 +7,7 @@ $config['send_immediately'] = true; // If the message should be sent immediately $config['system_person_id'] = 1; // Dummy sender, used for sending messages from the system $config['redirect_view_message_url'] = 'index.ci.php/Redirect/redirectByToken/'; // $config['message_html_view_url'] = 'index.ci.php/ViewMessage/toHTML/'; +$config['assistent_function'] = 'ass'; define('EMAIL_KONTAKT_TYPE', 'email'); // Email kontakt type define('SENT_INFO_NEWLINE', '\n'); // tbl_msg_recipient->sentInfo separator diff --git a/application/libraries/MessageLib.php b/application/libraries/MessageLib.php index 52ded9de9..09891583c 100644 --- a/application/libraries/MessageLib.php +++ b/application/libraries/MessageLib.php @@ -831,7 +831,7 @@ class MessageLib // Get all the valid receivers id using the oe_kurzbz $receivers = $this->ci->BenutzerfunktionModel->loadWhere( 'oe_kurzbz = \'' . $oe_kurzbz . '\''. - ' AND funktion_kurzbz = \'ass\'' . + ' AND funktion_kurzbz = \'' . $this->ci->config->item('assistent_function') . '\'' . ' AND (NOW() BETWEEN COALESCE(datum_von, NOW()) AND COALESCE(datum_bis, NOW()))' );