Bug 41546

Summary: Cannot unarchive suggestions
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: AcquisitionsAssignee: Jonathan Druart <jonathan.druart>
Status: Passed QA --- QA Contact: Andrew Fuerste-Henry <andrew>
Severity: major    
Priority: P5 - low CC: andrew, david
Version: unspecified   
Hardware: All   
OS: All   
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:
Bug Depends on: 33430    
Bug Blocks: 41579    
Attachments: Bug 41546: Restore the ability to unarchive suggestions
Bug 41546: Restore the ability to unarchive suggestions
Bug 41546: Restore the ability to unarchive suggestions

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.
Comment 4 Andrew Fuerste-Henry 2026-01-09 16:38:23 UTC
Created attachment 191208 [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>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>