RotherOSS / otobo

OTOBO is one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. https://otobo.io/
GNU General Public License v3.0
263 stars 75 forks source link

Behavior when Showing or hiding deleted articles #3655

Open bschmalhofer opened 3 months ago

bschmalhofer commented 3 months ago

Testing the behavior related to deleting articles in the AgentTicketZoom frontend. The system is a newly set up Docker installation using a local build of rel-11_0. The single article view in AgentTicketZoom was activated in the cases below. When viewing all articles everything seems to be fine.

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

bschmalhofer commented 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.

stefanhaerter commented 3 months ago

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.