[Koha-bugs] [Bug 11279] Quote of the day feature won't pick a quote

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 12 21:02:38 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11279

--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 23494
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23494&action=edit
Bug 11279: Improve how a new quote of the day is selected

When a lot of quotes were deleted, it's possible that no
new quote will be selected. This will happen when a lot of
the older quotes with low ids have been deleted.

This patch improves the selection of a new quote.

To test:
- Load sample quotes
- Delete the first half of the quotes.
  Note: With 34 quotes, delete the quotes with ids from 1-17
- Activate the QuoteOfTheDay system preference
- Check if a quote is displayed in OPAC
- Reload the page a few times, no quote should be displayed
  Note: make sure you don't have a quote with the current
  date in your quotes table before running those tests
- Run 'perl t/db_dependent/Koha.t'
  Note: requires sample quotes!
- Apply patch
- Reload the OPAC start page
- Verify a quote was now picked
- Run 'perl t/db/dependent/Koha.t' again - all tests should still pass

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list