Skip to content
Snippets Groups Projects
Commit 93f178cf authored by Randy Fay's avatar Randy Fay Committed by Ryan Szrama
Browse files

Issue #1195588 by rfay: remove a duplicate invocation of the...

Issue #1195588 by rfay: remove a duplicate invocation of the commerce_cart_product_remove event / hook.
parent 770471d9
No related branches found
No related tags found
No related merge requests found
......@@ -258,10 +258,6 @@ function commerce_cart_line_item_delete_form_submit($form, &$form_state) {
// If the deleted line item is a product...
if (in_array($line_item_wrapper->type->value(), commerce_product_line_item_types())) {
$title = $line_item_wrapper->commerce_product->title->value();
// Invoke the Rules event for removing an item from the cart so the order
// status can be reset by the default rule.
rules_invoke_all('commerce_cart_product_remove', $form_state['order'], $line_item_wrapper->commerce_product->value(), $line_item_wrapper->quantity->value(), $line_item_wrapper->value());
}
else {
$title = $line_item_wrapper->line_item_label->value();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment