[dev] Patch for side_by_side view in kronolith

Jason Rust jrust at rustyparts.com
Thu May 15 13:27:37 PDT 2003


The attached patch fixes a bug whereby having display shared calendars side
by side set to true, but having only 1 calendar selected to display
would result in no events showing up in either the day or week view.

-Jason
-------------- next part --------------
Index: DayView.php
===================================================================
RCS file: /repository/kronolith/lib/DayView.php,v
retrieving revision 1.117
diff -u -r1.117 DayView.php
--- DayView.php	9 Jan 2003 09:47:22 -0000	1.117
+++ DayView.php	15 May 2003 20:21:16 -0000
@@ -217,6 +217,10 @@
         $tmp = array();
         global $prefs;
         $include_all_events = !$prefs->getValue('show_shared_side_by_side');
+        if (!$include_all_events && count($GLOBALS['display_calendars']) == 1) {
+            $include_all_events = true;
+        }
+
         $this->_all_day_maxrowspan = 0;
         // Separate out all day events and do some initialization/prep
         // for parsing.


More information about the dev mailing list