projects
/
order_line_extra.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4776a3
)
Fix hook not trigger on purchase order cart.
author
Maxime Bourget
<bmx007@gmail.com>
Sat, 15 Jun 2013 20:11:38 +0000
(21:11 +0100)
committer
Maxime Bourget
<bmx007@gmail.com>
Sat, 15 Jun 2013 20:11:38 +0000
(21:11 +0100)
hooks.php
patch
|
blob
|
history
diff --git
a/hooks.php
b/hooks.php
index 026f2d2997a710d8c1dd5d84283bad7f9d4e50f3..6922792511118fed2763c6dacb81969830dfba6b 100644
(file)
--- a/
hooks.php
+++ b/
hooks.php
@@
-137,7
+137,7
@@
class hooks_order_line_extra extends hooks {
}
function db_postwrite($cart, $trans_type) {
- if(is_a($cart, "Cart")) {
+ if(is_a($cart, "Cart")
|| is_a($cart, "purch_order")
) {
// It's a cart. Find all the stock_id and update the cache table
foreach($cart->line_items as $line_no => $item) {