File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
app/code/Magento/Paypal/Model/ResourceModel/Billing/Agreement Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Paypal \Model \ResourceModel \Billing \Agreement ;
7
7
8
- use Magento \Customer \Api \CustomerMetadataInterface ;
9
-
10
8
/**
11
9
* Billing agreements resource collection
12
10
*/
@@ -92,17 +90,14 @@ public function addCustomerDetails()
92
90
}
93
91
94
92
/**
95
- * Add field filter to collection
96
- *
97
- * @param array|string $field
98
- * @param null|string|array $condition
99
- * @return $this
93
+ * @inheritdoc
100
94
*/
101
95
public function addFieldToFilter ($ field , $ condition = null )
102
96
{
103
- if (in_array ($ field , ['created_at ' , 'updated_at ' ])) {
104
- $ field = 'main_table. ' .$ field ;
97
+ if (in_array ($ field , ['created_at ' , 'updated_at ' ], true )) {
98
+ $ field = 'main_table. ' . $ field ;
105
99
}
100
+
106
101
return parent ::addFieldToFilter ($ field , $ condition );
107
102
}
108
103
}
You can’t perform that action at this time.
0 commit comments