You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Montalbano Florian (JIRA)" <ji...@apache.org> on 2016/05/18 13:11:12 UTC

[jira] [Updated] (OFBIZ-7075) Sending mail button from viewProfile doesn't work

     [ https://issues.apache.org/jira/browse/OFBIZ-7075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Montalbano Florian updated OFBIZ-7075:
--------------------------------------
    Attachment: OFBIZ-7075.patch

> Sending mail button from viewProfile doesn't work
> -------------------------------------------------
>
>                 Key: OFBIZ-7075
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7075
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Montalbano Florian
>              Labels: contact, mail, party
>         Attachments: OFBIZ-7075.patch
>
>
> Hi,
> The button 'send mail' from the profile overview page is not working.
> How to reproduce :
> 1) Go to the party component
> 2) Search for an party with a registered mail address
> 3) Go to the profile page : i.e. : https://localhost:8443/partymgr/control/viewprofile?partyId=admin
> 4) Click on the "send mail" button
> 5) Nothing happens
> Problem :
> When checking the target of the button "send mail", we can see that a "@" symbol appears.  The target corresponds to the form name just above (the one containing the email address). Thus, the form name contains the symbol too.
> This symbol seems to be forbidden in javascript naming (a warning is risen by the browser console) and this prevents the execution of the javascript.
> When manually deleting this symbol in both the name of the form and the target of the button, the javascript works fine.
> Root of the problem :
> In the "Contact.ftl" template, which creates this form, we can see that the name of the form and the target are created from the 'contactMech.infoString' (the email address in this case). A parsing of the string is done to remove the "@" symbol and the "." . The dot is deleted but not the at symbol. The problem comes from the encoding of the symbol. The parsing looks for a html coding "&#64;" but in the source code of the page, the symbol is in UCS "&#x40;" .
> I'll provide the patch adding a replace with this encoding.
> Thanks,
> Florian 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)