[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <6a7f9f1cf08a8_387ed5e5c90897@gitlab-sidekiq-low-urgency-cpu-bound-v2-7774c44f54-xrrst.mail>

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


Commits:
d7c71d5e by Adrien Mbuya Maloba at 2026-08-15T01:59:57+03:00
[BP][ENH] Calendar: export all events from 'Export calendars' option
---
* [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

See merge request tikiwiki/tiki!10897

- - - - -


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="d-inline-block">
         <form id="{$exportCal}" class="card" method="post" action="tiki-calendar_export_ical.php" name="f" style="display:none;">
             <input type="hidden" name="export" value="y">
+            <input type="hidden" name="exportAllEvents" value="y">
             <div class="card-header caltitle py-1 px-2">
                 <strong>{tr}Export calendars{/tr}</strong>
                 <button type="button" class="btn-close float-end"  onclick="toggle('{$exportCal}')" aria-hidden="true"></button>


=====================================
tiki-calendar_export_ical.php
=====================================
@@ -103,6 +103,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/d7c71d5e084c0b2bde35b9c3a0397c643e137320

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d7c71d5e084c0b2bde35b9c3a0397c643e137320
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.