This commit is contained in:
2026-05-01 11:28:33 +02:00
parent 5a3948fee5
commit 7abb220bc5
10 changed files with 359 additions and 61 deletions

View File

@@ -918,7 +918,12 @@ class Products
$client_id = \S::get( 'client_id' );
$campaign_id = (int) \S::get( 'campaign_id' );
$ad_group_id = (int) \S::get( 'ad_group_id' );
$limit = \S::get( 'length' ) ? \S::get( 'length' ) : 10;
$allowed_limits = [ 10, 25, 50, 100 ];
$limit = (int) \S::get( 'length' );
if ( !in_array( $limit, $allowed_limits, true ) )
{
$limit = 25;
}
$start = \S::get( 'start' ) ? \S::get( 'start' ) : 0;
$order_dir = $_POST['order'][0]['dir'] ? strtoupper( $_POST['order'][0]['dir'] ) : 'DESC';