Webmail Login Form breaks if a skin is enforced when __doPostBack is called

Maranda
Posts: 19
Joined: Mon Dec 11, 2017 8:10 pm

Webmail Login Form breaks if a skin is enforced when __doPostBack is called

Postby Maranda » Fri Dec 29, 2017 9:24 pm

I noticed this behaviour in current version of ME,
Basicly if I hit reset the Skin selection disappears and webmail breaks (logining shows it without proper templating) if I try to login.

I "fixed" (that doesn't seem to cause any unwanted behaviour for now) it by replacing the code block starting at line 355:

Code: Select all

                        <tr><td>
                                <%=uscToken.GetText("LANGUAGE")%><br />
                                <asp:DropDownList ID="ddlLanguages" runat="server" AutoPostBack="True"></asp:DropDownList>
                            </td>
                            <td class="login_lang_table_mid"></td>
                            <td>
                                <% If SkinListLength >= 1 Then%>
                                <%=uscToken.GetText("SKIN")%><br />
                                <asp:DropDownList ID="ddlSkins" runat="server"></asp:DropDownList>
                                <% End If%>
                            </td>
                        </tr>


With the snippet from Webmin:

Code: Select all

                        <tr>
                            <td>
                                <uc2:uscLanguageTokenMondo id="Usclanguagetoken5" TokenID="LANGUAGE" runat="server"></uc2:uscLanguageTokenMondo><br />
                                <asp:DropDownList id="ddlLanguages" runat="server" AutoPostBack="True"></asp:DropDownList><br />
                            </td>
                            <td class="login_lang_table_mid"></td>
                            <td>
                                <uc2:uscLanguageTokenMondo id="Usclanguagetoken4" TokenID="SKIN" runat="server"></uc2:uscLanguageTokenMondo><br />
                                <asp:DropDownList id="ddlSkins" runat="server"></asp:DropDownList><br />
                            </td>
                        </tr>

Who is online

Users browsing this forum: No registered users and 1 guest