Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Sales): typo for getFilterModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Feitl committed Jul 27, 2021
1 parent c6097cf commit 40b2e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Sales/Export/Ods/InvoicePosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function processIteration($_records)
$paFilter->addFilter(new Tinebase_Model_Filter_Text(array('field' => 'id', 'operator' => 'in', 'value' => $productAggregateIds)));
$productAggregates = Sales_Controller_ProductAggregate::getInstance()->search($paFilter);

$pFilter = Tinebase_Model_Filter_FilterGroup::getFilterForModel(Sales_Model_Product::class, );
$pFilter = Tinebase_Model_Filter_FilterGroup::getFilterForModel(Sales_Model_Product::class);
$pFilter->addFilter(new Tinebase_Model_Filter_Text(array('field' => 'id', 'operator' => 'in', 'value' => array_unique($productAggregates->product_id))));

$products = Sales_Controller_Product::getInstance()->search($pFilter);
Expand Down

0 comments on commit 40b2e15

Please sign in to comment.