Skip to content

Commit

Permalink
Update templates.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Oct 31, 2024
1 parent 7242ed5 commit 6d64da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ function doliagenda_display($content) {
} else {
$limit=12;
if ( isset($_GET['pg']) && is_numeric(esc_attr($_GET['pg'])) && esc_attr($_GET['pg']) > 0 ) { $page = esc_attr($_GET['pg']); } else { $page = 0; }
$request= "/agendaevents?sortfield=t.datep&sortorder=ASC&limit=".$limit."&page=".$page."&sqlfilters=(t.datep2:<=:'".date("Ymd")."')".$sqlfilter."&pagination_data=true";
$request= "/agendaevents?sortfield=t.datep&sortorder=ASC&limit=".$limit."&page=".$page."&sqlfilters=(t.datep2:>=:'".date("Ymd")."')".$sqlfilter."&pagination_data=true";
$object = callDoliApi("GET", $request, null, dolidelay('agenda', esc_attr(isset($_GET["refresh"]) ? $_GET["refresh"] : null)));
if ( doliversion('21.0.0') && isset($object->data) ) { $listagenda = $object->data; } else { $listagenda = $object; }

Expand Down

0 comments on commit 6d64da3

Please sign in to comment.