Open bschmalhofer opened 3 months ago
The bug is that the shown article changes when clicking on 'Hide' or 'Show'. This happens even when there is no reason for showing another article. But this is not serious, as the articles are still available via clicking in the list. Therefore I filed this as an enhancement issue for rel-11_1.
From a code perspective, the behavior seems quite logical, since the link format is:
Action=AgentTicketZoom;TicketID=[TicketID]#[ArticleID]
The DeletedArticles-Feature returns the ticket link, which per default shows the first article. It needs to be decided wether the behavior should be changed there, in this case the last viewed ArticleID needs to be handled within the HideShowDeletedArticles code.
Behavior where deleted articles are either listed or not
The button 'Show deleted articles' or 'Hide deleted articles' is not touched
Deleted articles are listed:
Deleted articles are now listed
Behavior when the listing behavior is changed
The button 'Show deleted articles' or 'Hide deleted articles' is pressed. A followup article is viewed.
No deleted articles exist, thus the viewed article is not deleted
A deleted article is viewed
There is a deleted article, but a non-deleted article is viewed
Originally posted by @bschmalhofer in https://github.com/RotherOSS/otobo/issues/3636#issuecomment-2258118251