[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 Mar 21 16:24:58 CET 2024


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

Laura Escamilla <Laura.escamilla at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #162608|0                           |1
        is obsolete|                            |

--- Comment #19 from Laura Escamilla <Laura.escamilla at bywatersolutions.com> ---
Created attachment 163630
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163630&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.

Signed-off-by: Laura Escamilla <laura.escamilla at bywatersolutions.com>

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


More information about the Koha-bugs mailing list