From 596494708d3a6f5c4db10ee343d85b13bf472ac2 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 17 Jun 2020 14:57:01 +0200 Subject: [PATCH 01/16] CL/Messages_model->prepareHtmlRead changed to redirect to an authenticated controller to reply to a message in case the receiver is the the system sender --- application/models/CL/Messages_model.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/application/models/CL/Messages_model.php b/application/models/CL/Messages_model.php index f023c9150..17824bbb8 100644 --- a/application/models/CL/Messages_model.php +++ b/application/models/CL/Messages_model.php @@ -284,9 +284,11 @@ class Messages_model extends CI_Model $sender = getData($senderResult)[0]; // Found sender data - // If the sender is not the system sender and are present configurations to reply + // If the sender is not the system sender and the receiver is not the system sender + // and are present configurations to reply $hrefReply = ''; if ($message->sender_id != $this->config->item(MessageLib::CFG_SYSTEM_PERSON_ID) + && $message->receiver_id != $this->config->item(MessageLib::CFG_SYSTEM_PERSON_ID) && !isEmptyString($this->config->item(MessageLib::CFG_REDIRECT_VIEW_MESSAGE_URL))) { $hrefReply = $this->config->item(MessageLib::CFG_MESSAGE_SERVER). @@ -294,6 +296,13 @@ class Messages_model extends CI_Model $token; } + // If the receiver is the system sender (the message was sent to an organization unit) + // redirect the reply to an authenticated controller to reply + if ($message->receiver_id == $this->config->item(MessageLib::CFG_SYSTEM_PERSON_ID)) + { + $hrefReply = site_url('system/messages/MessageClient/writeReply?token='.$token); + } + return array ( 'sender' => $sender, 'message' => $message, From 8a52169bdafc10f3d0218a5a6af227dc6909aa06 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Thu, 18 Jun 2020 13:58:22 +0200 Subject: [PATCH 02/16] Textkorrektur Diplomasupplement --- rdf/diplomasupplement.xml.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 742de2c5f..a88df9533 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -266,7 +266,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") echo ' UNESCO ISCED 7'; echo ' '; echo ' '; - echo ' '; + echo ' '; echo ' '; echo ' '; echo ' '; @@ -278,8 +278,8 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") echo ' UNESCO ISCED 6'; echo ' '; echo ' '; - echo ' '; - echo ' '; + echo ' '; + echo ' '; echo ' '; echo ' '; echo ' Bachelorstudium (UNESCO ISCED 6)'; From 7604b0ae64111411915d889a3624fc0a53082a2a Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Thu, 18 Jun 2020 13:59:01 +0200 Subject: [PATCH 03/16] Anzeige Protokoll im FAS --- content/student/studentabschlusspruefung.js.php | 2 ++ content/student/studentabschlusspruefungoverlay.xul.php | 2 ++ rdf/abschlusspruefung.rdf.php | 1 + 3 files changed, 5 insertions(+) diff --git a/content/student/studentabschlusspruefung.js.php b/content/student/studentabschlusspruefung.js.php index caaa32051..f46d7b2b9 100644 --- a/content/student/studentabschlusspruefung.js.php +++ b/content/student/studentabschlusspruefung.js.php @@ -352,6 +352,7 @@ function StudentAbschlusspruefungAuswahl() sponsion = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#sponsion" )); pruefungstyp_kurzbz = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#pruefungstyp_kurzbz" )); anmerkung = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anmerkung" )); + protokoll = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#protokoll" )); stg_kz = studiengang_kz = document.getElementById('student-detail-menulist-studiengang_kz').value; @@ -410,6 +411,7 @@ function StudentAbschlusspruefungAuswahl() document.getElementById('student-abschlusspruefung-textbox-anmerkung').value=anmerkung; document.getElementById('student-abschlusspruefung-textbox-abschlusspruefung_id').value=abschlusspruefung_id; document.getElementById('student-abschlusspruefung-checkbox-neu').checked=false; + document.getElementById('student-abschlusspruefung-textbox-protokoll').value=protokoll; StudentAbschlusspruefungTypChange(); } diff --git a/content/student/studentabschlusspruefungoverlay.xul.php b/content/student/studentabschlusspruefungoverlay.xul.php index e281a7a16..0f52650ec 100644 --- a/content/student/studentabschlusspruefungoverlay.xul.php +++ b/content/student/studentabschlusspruefungoverlay.xul.php @@ -339,6 +339,8 @@ echo ''; +