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

Pedro Amorim (ammopt) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |k

--- Comment #18 from Pedro Amorim (ammopt) <[email protected]> ---
2 non-blockers for a possible follow-up:

- t/cypress/integration/Circulation/PaymentReceiptAlert_spec.ts sets
'FinePaymentAutoPopup' back to '1' in its afterEach, but the default is '0'
(see its row in installer/data/mysql/mandatory/sysprefs.sql). Running the spec
leaves the pref changed:
  1) Check 'FinePaymentAutoPopup' is set to 'Don't'
  2) Run: yarn cypress run --spec
t/cypress/integration/Circulation/PaymentReceiptAlert_spec.ts
  3) Check 'FinePaymentAutoPopup' again: it is now set to 'Do'

- The new receipt alert is nearly the same block in members/pay.tt and
members/boraccount.tt (the [% IF payment_credit_type &&
!Koha.Preference('FinePaymentAutoPopup') %] block), and the payment lookup that
feeds it is the same code in members/pay.pl and members/boraccount.pl (the 'if
($payment_id)' block). Any later change to the alert or the lookup has to be
made twice. Potential candidate for DRY.

-- 
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