diff --git a/CHANGELOG.md b/CHANGELOG.md
index 17dd4b2..dab870c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [1.0.14] - 2020-09-01
+## [1.0.16] - 2020-09-01
+## Changed
+- Only show branches available for pickup in OPAC library selector.
+
+## [1.0.15] - 2020-09-01
## Changed
- Fix bug caused by missing js variable
diff --git a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js
index c1d63c8..a35d31f 100644
--- a/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js
+++ b/Koha/Plugin/Com/ByWaterSolutions/CurbsidePickup/opac.js
@@ -176,7 +176,7 @@ function update_data() {
$("#pickup-branch").find('option').remove();
- if (policy.enabled && policy.patron_scheduled_pickup) {
+ if (policy.enabled == "1" && policy.patron_scheduled_pickup == "1") {
enable_patron_scheduled_pickup = true;
$("#pickup-branch").append(``);
}
@@ -324,7 +324,7 @@ function generate_html() {
// Populate the "Pickup library" pulldown with branches that have curbside pickups enabled
for (let i = 0; i < policies.length; i++) {
let policy = policies[i];
- if (policy.enabled && policy.patron_scheduled_pickup) {
+ if (policy.enabled == "1" && policy.patron_scheduled_pickup == "1") {
$("#pickup-branch").append(``);
}
}