Bug 12986 (Upgrade the DataTables jQuery plugin to the latest version (1.10.2)) broke the calendar tool ( Tool -> Calendar ) if weekly repeating holidays are present. When I try to access that page I get a blank screen except for the word "Mondays" (or sometimes "Sundays," or sometimes "MondaysSundays"). Truncating the repeatable_holidays fixes the problem. Adding a new repeatable holiday on a specific date (e.g. December 25) doesn't trigger the problem. Adding a new range of holidays repeating yearly doesn't trigger the problem. Adding a holiday which repeats on the same day every week (e.g. "Closed Sunday") *does* trigger the problem.
Created attachment 33682 [details] [review] Bug 13289: document.write breaks DataTables The document.write in a td seems to brake the page with a new version of DataTables. This patch replaces a dirty piece of code with another one (but this one works...) Test plan: Create repeatable holidays and verify the page loads correctly.
Created attachment 33683 [details] [review] [SIGNED-OFF] Bug 13289: document.write breaks DataTables The document.write in a td seems to brake the page with a new version of DataTables. This patch replaces a dirty piece of code with another one (but this one works...) Test plan: Create repeatable holidays and verify the page loads correctly. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Works to fix the problem. The code is definitely an improvement.
Created attachment 33694 [details] [review] [PASSED QA] Bug 13289: document.write breaks DataTables The document.write in a td seems to brake the page with a new version of DataTables. This patch replaces a dirty piece of code with another one (but this one works...) Test plan: Create repeatable holidays and verify the page loads correctly. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Works to fix the problem. The code is definitely an improvement. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described, fixes critical problem. Passes tests and QA script.
Patch pushed to master. Thanks Jonathan!