Fix - no recurring appointments are being displayed in the sixth row of calendar...
commit49ec333b0d8a649ee0be0d2e01d43f4ac72feefe
authorepsdky <sequex@hushmail.com>
Wed, 8 Feb 2017 04:03:13 +0000 (8 15:03 +1100)
committerBrady Miller <brady.g.miller@gmail.com>
Wed, 8 Feb 2017 04:03:13 +0000 (7 20:03 -0800)
treee595a6d9cdced0a44e94656ee30f4cb81015def1
parent7f92123a09140f67b590cfc5ba241022e56d9ff3
Fix - no recurring appointments are being displayed in the sixth row of calendar month view (#476)

 are being displayed in the sixth row of the calendar month view (when present).

Bug 2

No recurring appointments are being displayed for the last day of the fifth row of the calendar month view when there is a day in the month view prior to the last day of the fifth row that contains more than 24 hours (daylight saving).

Also...

Modified and moved stop date selection code (lines 1327-1332 and line 1351).
1 The code for processing non recurring events does not involve a stop date therefore setting a stop date for non recurring events is not useful.
2 Code only needs to execute for recurring events.

Moved lines 1334-1350 to location prior to foreach loop (and added fixes) since they only need to execute once.

Moved line 1322 and line 1325 to REPEAT and REPEAT_ON code sections since they don't need to be executed for non recurring events.

Duplication of rt1 (REPEAT) code for rt3 (REPEAT_DAYS) events is unnecessary.

* Formatting fix
interface/main/calendar/modules/PostCalendar/pnuserapi.php