[
https://issues.apache.org/jira/browse/OFBIZ-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827873#comment-17827873
]
Jacques Le Roux commented on OFBIZ-5959:
----------------------------------------
Ah sorry, it seems you already did it with OFBIZ-11718. So I see no reason to
not close here as "Won't fix" as the community seems to prefer. We can already
reopen any issue at any time anyway. As we can revert any code too, though
sometimes that's hard with Git.
> Add lifespan fields to PartyRole
> --------------------------------
>
> Key: OFBIZ-5959
> URL: https://issues.apache.org/jira/browse/OFBIZ-5959
> Project: OFBiz
> Issue Type: Improvement
> Components: party
> Affects Versions: Trunk, Upcoming Branch
> Reporter: Pierre Smits
> Assignee: Pierre Smits
> Priority: Major
> Labels: role, roles, usability
> Attachments: Screen Shot 2020-05-20 at 09.10.15.png
>
>
> Currently the assignments of roles to parties are boolean (there or not
> there).
> As stated in a comment below:
> ??Reopening, as removing a PartyRole from a party can lead to errors.??
> ?? Steps to reproduce:??
> * ??Go to
> [https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer];??
> * ??Remove the 'Contact' role from the party.??
> ??See the error shown (attached screenshot).??
> ??Such errors pop up due to referential integrity (used in other entities).??
> However, these role assignments also have a lifespan, and PartyRole records
> are used in specific object role entities (such as: AgreementRole, QuoteRole,
> RequestRole, etc.)
> This can be achieved by adding fromDate and thruDate fields.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)