Tomas Cohen Arazi
1c0b7bf01f
The YAML preference definition defines it as a string ('yes' or 'no' the possible values). And the opac-suggestions.tt template has one occurence of the variable being compared to a string. This patch does: - fix the template - fixes opac.pref for 0|1 - adds an atomicupdate that takes care of moving 'yes' and 'no' to their respective boolean values. To test: 1. Change the syspref value to enable/disable 2. Check on the DB that the value is wrong: $ koha-mysql kohadev > SELECT value FROM systempreferences WHERE variable='OPACSuggestionAutoFill'; => FAIL: It is either 'yes' or 'no' depending on what you choose. 3. Apply this patch 4. Run: $ updatedatabase 5. Repeat 2 => SUCCESS: Values are now 0 or 1 6. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> |
||
---|---|---|
.. | ||
clubs | ||
errors | ||
sci | ||
sco | ||
svc | ||
ilsdi.tt | ||
maintenance.tt | ||
opac-account-pay-error.tt | ||
opac-account.tt | ||
opac-addbybiblionumber.tt | ||
opac-advsearch.tt | ||
opac-alert-subscribe.tt | ||
opac-auth-detail.tt | ||
opac-auth-MARCdetail.tt | ||
opac-auth.tt | ||
opac-authorities-home.tt | ||
opac-authoritiessearchresultlist.tt | ||
opac-basket.tt | ||
opac-blocked.tt | ||
opac-browse.tt | ||
opac-browser.tt | ||
opac-course-details.tt | ||
opac-course-reserves.tt | ||
opac-curbside-pickups.tt | ||
opac-detail.tt | ||
opac-discharge.tt | ||
opac-downloadcart.tt | ||
opac-downloadshelf.tt | ||
opac-full-serial-issues.tt | ||
opac-holdshistory.tt | ||
opac-ics.tt | ||
opac-idref.tt | ||
opac-illrequests.tt | ||
opac-imageviewer.tt | ||
opac-ISBDdetail.tt | ||
opac-issue-note.tt | ||
opac-library.tt | ||
opac-main.tt | ||
opac-MARCdetail.tt | ||
opac-memberentry-update-submitted.tt | ||
opac-memberentry.tt | ||
opac-messaging.tt | ||
opac-mymessages.tt | ||
opac-news-rss.tt | ||
opac-opensearch.tt | ||
opac-overdrive-search.tt | ||
opac-passwd.tt | ||
opac-password-recovery.tt | ||
opac-patron-consent.tt | ||
opac-privacy.tt | ||
opac-readingrecord.tt | ||
opac-recall.tt | ||
opac-recalls.tt | ||
opac-recordedbooks-search.tt | ||
opac-registration-confirmation.tt | ||
opac-registration-email-sent.tt | ||
opac-registration-invalid.tt | ||
opac-reportproblem.tt | ||
opac-request-article.tt | ||
opac-reserve.tt | ||
opac-reset-password.tt | ||
opac-restrictedpage.tt | ||
opac-results.tt | ||
opac-retrieve-file.tt | ||
opac-review.tt | ||
opac-routing-lists.tt | ||
opac-search-history.tt | ||
opac-sendbasket.tt | ||
opac-sendbasketform.tt | ||
opac-sendshelf.tt | ||
opac-sendshelfform.tt | ||
opac-serial-issues.tt | ||
opac-shareshelf.tt | ||
opac-shelves-rss.tt | ||
opac-shelves.tt | ||
opac-showmarc.tt | ||
opac-showreviews-rss.tt | ||
opac-showreviews.tt | ||
opac-suggestions.tt | ||
opac-tags.tt | ||
opac-tags_subject.tt | ||
opac-topissues.tt | ||
opac-user.tt |