Skip to content

Commit

Permalink
Update widgets.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Nov 2, 2024
1 parent b3d87f9 commit 6a21e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public function widget( $args, $instance ) {
$date->modify('NOW');
$lastdate = $date->format('Y-m-d');
if ( doliversion('19.0.0') ) {
$requestp = "/discountprice?sortfield=t.".$field."&sortorder=".$order."&limit=".$limit."&page=".$page."&pagination_data=true&sqlfilters=(t.date_begin%3A%3E%3D%3A'".$lastdate."')and(t.date_end:<=:'".$lastdate."')and(d.tosell:=:1)";
$requestp = "/discountprice?sortfield=t.".$field."&sortorder=".$order."&limit=".$limit."&page=".$page."&pagination_data=true&sqlfilters=(t.date_begin%3A%3E%3D%3A'".$lastdate."')and(t.date_end%3A%3C%3D%3A'".$lastdate."')and(d.tosell:=:1)";
$listproduct = callDoliApi("GET", $requestp, null, dolidelay('product', esc_attr(isset($_GET["refresh"]) ? $_GET["refresh"] : null)));
$count = $listproduct->pagination->total;
} else {
Expand Down

0 comments on commit 6a21e07

Please sign in to comment.