Skip to content

Commit a8209e0

Browse files
authored
Merge pull request #128 from boherm/fix-discount-with-discount_type
Fix discount endpoints with discount_type
2 parents 577d043 + e0806a0 commit a8209e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
21-
prestashop_version: ['develop', '9.0.x']
21+
prestashop_version: ['develop', '9.0.x', '9.1.x']
2222
exclude:
2323
# 9.0.x doesn't support PHP 8.5
2424
- php: '8.5'

src/ApiPlatform/Resources/Discount/DiscountList.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
ApiResourceMapping: [
3838
'[id_discount]' => '[discountId]',
3939
'[active]' => '[enabled]',
40+
'[discount_type]' => '[type]',
4041
],
4142
gridDataFactory: 'prestashop.core.grid.data.factory.discount',
4243
filtersClass: DiscountFilters::class,

0 commit comments

Comments
 (0)