From: Konrad Rosenbaum Date: Thu, 21 Nov 2013 17:24:20 +0000 (+0100) Subject: fix: when changing reservation to order do not re-order cancelled tickets X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2fa7a875ca3e7a802fa88463e85f0dc2501d8a14;p=web%2Fkonrad%2Fsmoke.git fix: when changing reservation to order do not re-order cancelled tickets --- 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);