[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Calendar: export all events from 'Export calendars' option
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a7e374ea98b6_3819f758837e3@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bfd78ff69-l74gm.mail> |
ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
a2a771ad by Adrien Mbuya Maloba at 2026-08-13T21:10:09+00:00
[ENH] Calendar: export all events from 'Export calendars' option
---
* [ENH] Calendar: export all events from Export calendars option
See merge request tikiwiki/tiki!10611
- - - - -
2 changed files:
- templates/export_calendar_in_csv_or_ical.tpl
- tiki-calendar_export_ical.php
Changes:
=====================================
templates/export_calendar_in_csv_or_ical.tpl
=====================================
@@ -6,6 +6,7 @@
<div class="dropdown-menu p-0" id="{$exportCal}" aria-labelledby="{$exportCal}_toggle">
<form method="post" action="tiki-calendar_export_ical.php" name="f">
<input type="hidden" name="export" value="y">
+ <input type="hidden" name="exportAllEvents" value="y">
<h6 class="dropdown-header caltitle">{tr}Export calendars{/tr}</h6>
<div class="dropdown-divider"></div>
<div class="px-3 py-1 caltoggle">
=====================================
tiki-calendar_export_ical.php
=====================================
@@ -101,6 +101,10 @@ $smarty->assign('calendars', $calendars["data"]);
// export calendar //
if (((is_array($calendarIds) && (count($calendarIds) > 0)) or isset($_REQUEST["calendarItem"]) ) && $_REQUEST["export"] == 'y') {
+ if (isset($_REQUEST['exportAllEvents'])) {
+ $startTime = 0;
+ $stopTime = PHP_INT_MAX;
+ }
// get calendar events
if (! isset($_REQUEST["calendarItem"])) {
$events = $calendarlib->list_raw_items($calendarIds, $user, $startTime, $stopTime, -1, $maxRecords, $sort_mode = 'start_asc', $find = '');
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a2a771ad950e5b775fc8a4b330fc12862cb5cc7e
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a2a771ad950e5b775fc8a4b330fc12862cb5cc7e
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs