From 2fa7a875ca3e7a802fa88463e85f0dc2501d8a14 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Thu, 21 Nov 2013 18:24:20 +0100 Subject: [PATCH] fix: when changing reservation to order do not re-order cancelled tickets --- www/inc/wext/order.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/inc/wext/order.php b/www/inc/wext/order.php index e1165b9..d48acc6 100644 --- a/www/inc/wext/order.php +++ b/www/inc/wext/order.php @@ -475,8 +475,10 @@ class WOOrder extends WOOrderAbstract //change tickets $ticks=WTticket::selectFromDB("orderid=".$db->escapeInt($ord->orderid)); foreach($ticks as $tick){ - $tick->status=WTticket::Ordered; - $tick->update(); + if($tick->status==WTticket::Reserved){ + $tick->status=WTticket::Ordered; + $tick->update(); + } } //return $order=WOOrder::fromTableorder($ord); -- 1.7.2.5