From 9ddae5615e7f82db96ad094c370e6adac2b593a7 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Mon, 8 Apr 2024 01:14:59 +0300 Subject: [PATCH] 1.2.5 --- Test/Basic.php | 6 ++++-- composer.json | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Test/Basic.php b/Test/Basic.php index 0be2412..d4a265a 100644 --- a/Test/Basic.php +++ b/Test/Basic.php @@ -17,14 +17,16 @@ function t02_orders_stripe():void { $a['id'], $a['country'] ];}, df_oro_get_list('customers', [], [], true)); $websites = array_values(df_map( - df_sort_l( + df_sort( array_filter( df_oro_get_list('orders', ['product' => 1], ['website'], true)['included'] ,function(array $a):bool {return 'extenddfwebsites' === $a['type'] && 'magento_2' === dfa_deep($a, 'relationships/platform/data/id') ;} - ), '', function(array $a):string {return dfa_deep($a, 'attributes/domain');} + ) + ,function(array $a):string {return dfa_deep($a, 'attributes/domain');} + ,true ), function(array $a) use($customers):array {$at = $a['attributes']; return [ 'country' => $customers[dfa_deep($a, 'relationships/dfcustomer_websites/data/id')] ,'edition' => $at['m2_is_enterprise'] ? 'Enterprise' : 'Community' diff --git a/composer.json b/composer.json index 72380f2..43d0f99 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/oro" - ,"version": "1.2.4" + ,"version": "1.2.5" ,"description": "Oro Platform integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://oplatform.club" @@ -11,6 +11,6 @@ "homepage": "https://upwork.com/fl/mage2pro", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=10.8.2"} + ,"require": {"mage2pro/core": ">=10.8.3"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Oro\\": ""}} } \ No newline at end of file