projects
/
web/konrad/smoke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b9463a4
)
fix: when changing reservation to order do not re-order cancelled tickets
author
Konrad Rosenbaum
<konrad@silmor.de>
Thu, 21 Nov 2013 17:24:20 +0000 (18:24 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Thu, 21 Nov 2013 17:24:20 +0000 (18:24 +0100)
www/inc/wext/order.php
patch
|
blob
|
history
diff --git
a/www/inc/wext/order.php
b/www/inc/wext/order.php
index
e1165b9
..
d48acc6
100644
(file)
--- 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);