Skip to content

Commit 72eb0eb

Browse files
author
Roman Ganin
committed
Merge branch 'develop' of https://github.corp.magento.com/magento2/magento2ce into bugfix-GA
2 parents d4d2ac0 + 8041c32 commit 72eb0eb

File tree

1 file changed

+12
-2
lines changed
  • app/code/Magento/Paypal/Model/ResourceModel/Billing/Agreement

1 file changed

+12
-2
lines changed

app/code/Magento/Paypal/Model/ResourceModel/Billing/Agreement/Collection.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
namespace Magento\Paypal\Model\ResourceModel\Billing\Agreement;
77

8-
use Magento\Customer\Api\CustomerMetadataInterface;
9-
108
/**
119
* Billing agreements resource collection
1210
*/
@@ -90,4 +88,16 @@ public function addCustomerDetails()
9088
);
9189
return $this;
9290
}
91+
92+
/**
93+
* @inheritdoc
94+
*/
95+
public function addFieldToFilter($field, $condition = null)
96+
{
97+
if (in_array($field, ['created_at', 'updated_at'], true)) {
98+
$field = 'main_table.' . $field;
99+
}
100+
101+
return parent::addFieldToFilter($field, $condition);
102+
}
93103
}

0 commit comments

Comments
 (0)