Bugfix: Infocenter write page person id and prestudent id are swapped

This commit is contained in:
Paolo
2020-02-11 16:10:39 +01:00
parent c7b33fe160
commit 1b9693e316
+6 -2
View File
@@ -21,14 +21,18 @@ function parseMessageText(receiver_id, text)
{
var data = {text: text};
if ($("#type").val() == 'person_id')
if ($("#type").val() == 'persons')
{
data.person_id = receiver_id;
}
else
else if ($("#type").val() == 'prestudents')
{
data.prestudent_id = receiver_id;
}
else
{
return;
}
FHC_AjaxClient.ajaxCallGet(
"system/messages/Messages/parseMessageText",