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

--- Comment #8 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 201994
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201994&action=edit
Bug 40206: (QA follow-up) Fix JS error and misleading message on disabled
curbside pickups page

The early-exit added for the CurbsidePickup syspref check left
policy/curbside_pickups unset, but intranet-bottom.inc's jsinclude
still referenced them unconditionally, causing a client-side
TypeError on every render of the disabled state. Guard the whole
jsinclude block with disabled_for_branch.

Also distinguish the two reasons the page can be disabled: the
CurbsidePickup syspref being off globally vs. this branch simply
not having an enabled curbside pickup policy configured. The
message and link now point staff to the correct admin page for
each case, instead of always suggesting the syspref (which may
already be on).

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