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

--- Comment #9 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 209602
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209602&action=edit
Bug 43486: (follow-up) Do not send notification_summary for sample patrons

The notification_summary attribute added to the patron definition is
generated by buildSampleObject as a random string, which makes the
insertSamplePatron Cypress task (and all the tasks using it, like
insertSampleHold and insertSampleCheckout) fail with:

    Error: Expected object/null - got string.

This patch strips the attribute before POSTing the patron, like it is
already done for the other read-only/embeddable attributes.

Test plan:
1. Run:
   $ ktd --shell
  k$ yarn cypress run --spec
t/cypress/integration/Circulation/FineNoRenewals_spec.ts
=> FAIL: insertSampleCheckout fails with 'Expected object/null - got string'
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Assisted-by: Opus 5.5 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to