You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Sebastian Berg (Jira)" <ji...@apache.org> on 2021/02/08 13:29:00 UTC

[jira] [Commented] (OFBIZ-12172) Remove CommunicationContent is not working as expected

    [ https://issues.apache.org/jira/browse/OFBIZ-12172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281051#comment-17281051 ] 

Sebastian Berg commented on OFBIZ-12172:
----------------------------------------

I provided a solution implementing what I think should be the default behavior feel free to suggest a different approach if I missed something.

 

I changed the controller for the request 'removeAttachFile' so after deleting a CommunicationContent the user stays on the overview page and is not forced into the edit Screen.

The reason why the content doesn't get deleted after clicking the button ist, that the CommunicationContent in the database doesn't get deleted on default instead in 'CommEventContentAssoc' a thru-Date is set. To account for that I added a filter-by-date for the 'ListCommContent' in order to show only active contents. Again feel free to suggest a different solution.

Sebastian

 

> Remove CommunicationContent is not working as expected
> ------------------------------------------------------
>
>                 Key: OFBIZ-12172
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12172
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Sebastian Berg
>            Assignee: Sebastian Berg
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> How to reproduce:
> Go to Party -> Communication -> Search -> select any entry with CommunicationContent -> On the right side under 'Related Content' in the table 'Communication Content' delete any entry
> Result: The user gets navigated to EditCommunicationEvent. If I go back to the CommunicationContent the deleted entry still shows.
>  
> From my perspective the expected behavior would be to remain on the current view, while the CommunicationContent gets deleted.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)