https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32020
--- Comment #3 from babar junaid <[email protected]> --- Created attachment 211192 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211192&action=edit Bug 32020: Do not serve pages that have expired or are not published yet Bug 32020: Do not serve pages that have expired or are not published yet opac/opac-page.pl and tools/page.pl served a page whatever its publication and expiration dates, although the Pages list already hides those pages. Add Koha::AdditionalContent->is_publication_pending and send a page that is expired or not published yet to the 404 page, as is done for a page limited to another library. Test plan: 1. prove t/db_dependent/Koha/AdditionalContents.t 2. Tools > Pages > New entry: create a page for "Staff and OPAC", no dates. Open its OPAC and staff links: the page shows. 3. Edit it, set the expiration date to yesterday. Reload both links. Without the patch the page still shows; with it, the 404 page. 4. Remove the expiration date, set the publication date to tomorrow. Same result as 3. 5. Remove the dates: the page shows again. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug. _______________________________________________ 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/
