send contact mech email is broken for partyless logins
------------------------------------------------------
Key: OFBIZ-2943
URL: https://issues.apache.org/jira/browse/OFBIZ-2943
Project: OFBiz
Issue Type: Bug
Components: party
Affects Versions: Release Branch 4.0, Release Branch 9.04, SVN trunk
Reporter: Adam Heath
Priority: Minor
If only a seed install is done, and the preliminary UserLogin is created, you
will not have any 'admin' parties, and the UserLogin will not be attached to
any party.
You can happily log into any backend webapp, and things mostly work.
however, if you create a person, and create an email address for that person,
then the profile page breaks. This is due to the following exception:
freemarker.core.InvalidReferenceException: Expression userLogin.partyId is
undefined on line 106, column 58 in
component://party/webapp/partymgr/party/profileblocks/Contact.ftl.
And from the above file:
<form method="post"
action="<@ofbizUrl>NewDraftCommunicationEvent</@ofbizUrl>"
onSubmit="javascript:submitFormDisableSubmits(this)" name
="createEmail">
<input name="partyIdFrom" value="${userLogin.partyId}"
type="hidden"/>
<input name="partyIdTo" value="${partyId}" type="hidden"/>
<input name="my" value="My" type="hidden"/>
<input name="statusId" value="COM_PENDING" type="hidden"/>
<input name="communicationEventTypeId"
value="EMAIL_COMMUNICATION" type="hidden"/>
</form>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.