[Koha-bugs] [Bug 34920] ERM breaks if an ERM authorized value is missing a description

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 29 16:49:46 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34920

--- Comment #14 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 162608
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162608&action=edit
Bug 34920: Ensure 'description' property is an empty string if 'lib' is null

Test plan:
1. Enable ERM module
2. Confirm that you can open the ERM module in the staff interface.
3. Go to the authorized values, select 'ERM_AGREEMENT_CLOSURE_REASON' and edit
the 'Cancelled' authorized value by removing the description. Making this
change with any of the ERM authorized values will result in an error.
4. Go back to the ERM module and notice that there is an error. 'Something went
wrong: Error: Expected string - got null.'
5. Apply patch. Run yarn js:build. Repeat test plan
6. Create a new agreement. Pick status 'Closed'.
7. Open 'Closure reason'. Confirm there is an entry for 'Expired' and an empty
entry below that.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list