Skip to content
Code-Schnipsel Gruppen Projekte
Commit 83e60b2a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: consider empty currency -> null at order search

Übergeordneter b5c5eda2
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -196,10 +196,13 @@ public function searchForGrid()
$this->cache = [];
// select display orders
$orders = $this->executeQueryParams($this->getQuery());
$query = $this->getQuery();
$queryCount = $this->getQueryCount();
$orders = $this->executeQueryParams($query);
// count
$count = $this->executeQueryParams($this->getQueryCount());
$count = $this->executeQueryParams($queryCount);
$count = (int)$count[0]['count'];
// total - calculation is without limit and paid_status
......@@ -289,7 +292,7 @@ protected function getQuery($count = false)
// fallback for old orders
if ($DefaultCurrency->getCode() === $this->currency) {
$where[] = "(currency = :currency OR currency = '')";
$where[] = "(currency = :currency OR currency = '' OR currency IS NULL)";
} else {
$where[] = 'currency = :currency';
}
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren