Bug 41546 - Cannot unarchive suggestions
Summary: Cannot unarchive suggestions
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 33430
Blocks:
  Show dependency treegraph
 
Reported: 2026-01-08 14:15 UTC by Jonathan Druart
Modified: 2026-01-08 23:03 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
This restores the 'Unarchive' action for archived suggestions. To restore an archived suggestion: 1. Go to Acquisitions > Suggestions 2. To show archived suggestions: 2.1 From the sidebar 'Filter by section', select 'Include archived' 2.2 Click the 'Go' button in the 'Organize by section' 3. For an archived suggestion ('Archived' shown under the suggestion title): 3.1 Select the dropdown list by the 'Edit' button on the far right 3.2 Select the 'Unarchive' action.
Version(s) released in:
Circulation function:


Attachments
Bug 41546: Restore the ability to unarchive suggestions (2.30 KB, patch)
2026-01-08 14:16 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41546: Restore the ability to unarchive suggestions (2.34 KB, patch)
2026-01-08 22:17 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2026-01-08 14:15:13 UTC

    
Comment 1 Jonathan Druart 2026-01-08 14:16:59 UTC
Created attachment 191027 [details] [review]
Bug 41546: Restore the ability to unarchive suggestions

There is a TT condition that has not been moved to JS.

Test plan:
Create a suggestion, archive it
List suggestions and tick "include archived"
Notice that with this patch applied you are able to unarchive the
suggestion
Comment 2 David Nind 2026-01-08 22:17:59 UTC
Created attachment 191037 [details] [review]
Bug 41546: Restore the ability to unarchive suggestions

There is a TT condition that has not been moved to JS.

Test plan:
Create a suggestion, archive it
List suggestions and tick "include archived"
Notice that with this patch applied you are able to unarchive the
suggestion

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2026-01-08 23:03:02 UTC
Testing notes (using KTD):

1. Go to Acquisitions > Suggestions
2. Create two or three suggestions
3. Archive a suggestion: from the list of suggestions, select Actions > Archive
4. Result: The table with the list of suggestions does not show archived suggestions
5. To show archived suggestions:
   5.1 From the sidebar 'Filter by section', select 'Include archived'
   5.2 Click the 'Go' button in the 'Organize by section'
6. Note that all suggestions are shown, each archived suggestion has 'Archived' under the suggestion title in the suggestion column
7. For the archived suggestion, select the dropdown list by the 'Edit' button on the far right - not that there is only a 'Delete' action.
8. Apply the patch.
9. Refresh the suggestions page
10. Repeat steps 5-6.
11. Not that there is now an 'Unarchive' action!
12. Select that, and not that the 'Archived' text under the title has now gone, and the suggestion is shown in the list of suggestions.