FSN#57075 Fout in berichtenmodule: algemeen bericht heeft nu altijd autorisatie itt eerder

svn path=/Website/branches/v2019.1/; revision=41750
This commit is contained in:
Erik Groener
2019-03-22 09:13:16 +00:00
parent f57cecde07
commit a668bf8ff6
2 changed files with 27 additions and 23 deletions

View File

@@ -155,16 +155,30 @@ if( lBestaandBericht ) { // Dit moet/zal altijd een reply zijn!
</head>
<body id="editbody">
<%
buttons = [{ icon: "opslaan.png", title: L("lcl_mes_send"), action: 'checkInput()' },
<form name="u2"
action="msg_message_save.asp?message_reply=<%=message_reply?1:0%>&message_key=<%=message_key%>"
method="post">
<%
var buttons = [{ icon: "opslaan.png", title: L("lcl_mes_send"), action: 'checkInput()' },
{ icon: "undo.png", title: L("lcl_cancel"), action:"FcltMgr.closeDetail(window, { cancel: true } );" } ];
IFRAMER_HEADER(L("lcl_mes_message"), buttons);
%>
<form name="u2" action="msg_message_save.asp?message_reply=<%=message_reply?1:0%>&message_key=<%=message_key%>" method="post">
<%
IFRAMER_HEADER(L("lcl_mes_message"), buttons);
if (!lBestaandBericht)
{
BLOCK_START("msgMessage", L("lcl_msg_datum"));
FCLTcalendar( "datefrom",
{ label : L("lcl_period_from"),
datum : vandate,
volgnr: 1
});
FCLTcalendar( "dateto",
{ label : L("lcl_period_to"),
datum : totdate,
volgnr: 2
});
BLOCK_END();
BLOCK_START("msgPrs", L("lcl_msg_medewerkergroep"));
FCLTpersoonselector(
"perslid_key",
@@ -181,7 +195,8 @@ if( lBestaandBericht ) { // Dit moet/zal altijd een reply zijn!
FCLTselector("msggroup", sql,
{ label: L("fac_groep"),
multi: true
multi: true,
emptyOption: ""
}
);
BLOCK_END();
@@ -198,12 +213,13 @@ if( lBestaandBericht ) { // Dit moet/zal altijd een reply zijn!
if (lBestaandBericht) {
%>
<tr>
<tr>
<td class="label"><label><%=L("lcl_from")%>:</label></td>
<td><input value="<%=safe.htmlattr(sender_name)%>" type="text" id="receiver" readonly></td>
<td class="label"><label><%=L("lcl_mes_send_date_time")%>:</label></td>
<td><input class="flddatetime" value="<%=action_datum%>" type="text" id="time" readonly></td>
</tr><tr>
</tr>
<tr>
<td class="label"><label><%=L("lcl_mes_subject")%>:</label></td>
<td>
<input class="fldmsgsubj" value="<%=safe.htmlattr(subject)%>" type="text" id="subject0" name="subject0" <%=lBestaandBericht?" readonly ": ""%>>
@@ -298,20 +314,7 @@ if( lBestaandBericht ) { // Dit moet/zal altijd een reply zijn!
<input class="fldmsgurl" type="text" id="ilink" name="ilink" value="">
</td>
</tr>
<tr>
<td class="xlabel" colspan="2"><label><%=L("lcl_msg_portalbericht")%>:</label></td>
</tr>
<%
FCLTcalendar( "datefrom",
{ label : L("lcl_period_from"),
datum : vandate,
volgnr: 1
});
FCLTcalendar( "dateto",
{ label : L("lcl_period_to"),
datum : totdate,
volgnr: 2
});
}
BLOCK_END();
IFACE.FORM_END();

View File

@@ -174,7 +174,8 @@ if( nieuws_key > 0 ) { // message known, existing, so read or reply
sql,
{ initKey: autgroep_key,
label: L("fac_groep"),
multi: false
multi: false,
emptyOption: ""
}
);
BLOCK_END();