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

            Bug ID: 42933
           Summary: ERM - Error adding a license to an agreement when
                    leaving non-mandatory fields empty
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: ERM
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected],
                    [email protected],
                    [email protected],
                    [email protected],
                    [email protected]
  Target Milestone: ---

If you add a license to an agreement, and leave all the non-mandatory fields
empty you get this error message:

   Something went wrong: Error: Expected string - got null.

If you select data for a non-mandatory field, then the change you made is saved
and you don't get an error.

If any of the fields when adding a license are required, then they should be
marked as required.

To reproduce:
1. Enable the ERM module: set the ERMModule system preference to 'Enable'.
2. Got to the ERM module.
3. Add a license: Licenses > New license
   - Complete the mandatory fields
   - Click 'Save'
4. Add a test agreement: Agreements > New agreement
   - Completed the required fields
   - Under the licenses section, click 'Add new license'
   - Select the license you created from the dropdown list for the
     'Licenses' field 
   - Don't add data for any another fields for the license - none are marked 
     as mandatory
   - Click 'Save'
   - Get error with yellow background at the top of the page:
       "Something went wrong: Error: Expected string - got null."
   - Select a value for the status field, for example "Controlling"
   - Click 'Save'
   - The agreement is now created.

This was identified when testing bug 37502.

I searched the ERM module for Bugzilla, but couldn't see a bug reflecting this
issue.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to