- Fixed a bug where parameters passed as an Array to
EventCriteriaModelwere ignored. (How rude.)
- Implemented the
- Added a resource call to ensure that Timepicker JS loads before Calendars JS, to prevent an obscure error that might occur if Calendars fields are rendered before any other date/time inputs.
- Added a temporary workaround for an issue where Schedule Rules Editor components aren’t rendered for newly created Commerce Variants.
- Updated Knockout JS library to v3.4.0.
- Fixed some typos in comments.
- Fixed a bug where the
calendarattribute on an
EventCriteriaModelwouldn’t be parsed correctly if the user passed in a CalendarCriteriaModel.
- Changed how the
EventCriteriaModelspins up its internal Element Type stash to really prevent database errors from occurring when querying events from third-party Element Types.
- Fixed a bug that caused a SQL ‘missing column’ error when using the Event Dates fieldtype with non-Entry element types.
- Source dates for recurrence generation are now converted to the system DateTimeZone before recurrences are calculated, to avoid DST offset issues that could arise when converting UTC dates to the system timezone in templates.
- Disabled the FieldType from being rendered in contexts where there is no element attached, such as in Quick Post widgets, to avoid PHP errors. (This is a highly dissatisfying solution and will hopefully be short-term.)
- Corrected some confusion between the
ownerIdattributes that caused Event Dates fields to display selected dates from other entries.
- Fixed a version number typo that caused Craft to detect available updates even when the plugin was up-to-date.
- Added the
EventCriteriaModel, which provides a count of all events generated by a criteria without accounting for
- Added a spiffy new plugin icon for the Settings page.
- Fixed an issue where
lastEvent()did not return correct results.
- Refactored matched owner caching so
getOwnerIds()works even if it is called before the event generator has been invoked.
- Fixed an issue where setting the
ownerIdparameter on an
EventCriteriaModeldidn’t properly filter the results.
- This release marks the end of the public beta. Craft Calendars is now commercially supported!
- Fixed issues with localization of datepicker and timepicker fields.
- Added CSRF-prevention token in New/Edit Calendar CP form.
- Fixed an error that could occur when a Task tried to save a field whose input data was empty.
- Fixed a bug that would cause a ‘missing method’ error when creating a new calendar.
- Fixed a bug that prevented events from being properly returned on a monthly calendar unless a dateRangeEnd was explicitly supplied.
- Fixed a bug that would cause a database error during installation.
Version 0.8.x introduces some breaking changes from previous Beta versions. Please see the Updating from Beta page before updating to this version.
- Craft Calendars requires Craft 2.5+
calendars.eventDatais deprecated, replaced by calendars.events, which returns a brand new EventCriteriaModel.
calendars.calendarsreturns a nice CalendarsCriteriaModel.
EventDataCrtieriaModelis dead, replaced by the much nicer EventCriteriaModel.
calendars.monthhas new properties and methods, attaches events much more efficiently, and renders faster, thanks to the new
- EventCriteriaModel allows ordering events by multiple criteria
- EventDataModel is dead, replaced by the much nicer EventModel.
- Recurrences are only calculated for the needed date range, resulting in dramatic speed improvements
- Event Dates fields return an entire EventCriteriaModel rather than just a starting DateTime.
- Event Dates fields play nicely in Live Preview and saved drafts.
- Forced EventDataService to fetch event data with related records attached
- Implemented event ordering
- Bug fixes
- Fixed a bug in PHP 5.3 and 5.4 where the system was operating on a \DateTime object when it expected a \Craft\DateTime object.
- Changed the default behavior of DT() to throw an Exception if its parameter isn’t a recognized format.
- Added a double-check to the
calendars.monthlogic to avoid PHP notices if an item was missing or mis-keyed in the dates array.
- Made the
calendars.monthtag’s reference EventDataCriteriaModel available as the
- Fixed a stupid, stupid typo that caused only the last registered Element to be fetched and attached to its events.
- Made an EventDataCriteriaModel’s debug data available with the
- First beta release