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

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


Commits:
574404d2 by Adrien Mbuya Maloba at 2026-08-15T02:32:42+03:00
[BP][ENH] Calendar: export all events from 'Export calendars' option
---
* [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

See merge request tikiwiki/tiki!10899

- - - - -


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
=====================================
@@ -108,6 +108,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/574404d261a51f0933dd7c0437e45aefa7f0d218

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