Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display inactive services as alternative

  • Loading branch information...
commit 2090cca22ac3c2a3d914855f195b9b722b04701d 1 parent e2791e6
Sebastian Muszytowski authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Order.php
View
4 lib/Order.php
@@ -146,11 +146,13 @@ public static function getPrintOrderAlternatives($serviceid, array $orders) {
left join " . PizzaService::TABLE_NAME . "
on ". Pizza::TABLE_NAME .".serviceid = " . PizzaService::TABLE_NAME .".id
where ". PizzaService::TABLE_NAME .".id != $serviceid
- and ". PizzaService::TABLE_NAME .".active = 1
and ". Order::TABLE_NAME .".status = ".Database::pdo()->quote(ORDER::STATUS_WAITING)."
and ". Order::TABLE_NAME .".id in (". implode(",", $ordersInStmt) .")
group by ". Pizza::TABLE_NAME ."id, ". PizzaService::TABLE_NAME .".id";
+ // Avoid not showing of inactive pizza services
+ // and ". PizzaService::TABLE_NAME .".active = 1
+
$stmt = Database::pdo()->query($query);
$result = $stmt->fetchAll();
Please sign in to comment.
Something went wrong with that request. Please try again.