[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [BP][ENH] Calendar: export all events from 'Export calendars' option

"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a7f9778d6781_3885c05f06056@gitlab-sidekiq-low-urgency-cpu-bound-v2-7774c44f54-m25nc.mail>

Adrien Mbuya Maloba pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
7d9313e3 by Adrien Mbuya Maloba at 2026-08-15T01:26:45+03:00
[BP][ENH] Calendar: export all events from 'Export calendars' option
---
* [ENH] Calendar: export all events from 'Export calendars' option
---
* [ENH] Calendar: export all events from Export calendars option

See merge request tikiwiki/tiki!10611

See merge request tikiwiki/tiki!10896

- - - - -


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
=====================================
@@ -3,6 +3,7 @@
     <div class="my-2">
         <form id="{$exportCal}" class="card p-sm-1 d-none" method="post" action="tiki-calendar_export_ical.php" name="f">
             <input type="hidden" name="export" value="y">
+            <input type="hidden" name="exportAllEvents" value="y">
             <div class="card-header caltitle py-2 px-3 d-flex justify-content-between align-items-center">
                 <strong class="mb-0">{tr}Export calendars{/tr}</strong>
                 <button type="button" class="btn-close" onclick="toggle('{$exportCal}')" aria-label="Close"></button>


=====================================
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/7d9313e3ce7ba6b7782904af27a939b608348555

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7d9313e3ce7ba6b7782904af27a939b608348555
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.