Closed (fixed)
Project:
e-Commerce
Version:
master
Component:
ec_cart
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 14:51 UTC
Updated:
8 Apr 2009 at 04:40 UTC
On the cart view page, no nid in the 'delete' url. See the code:
Index: sites/all/modules/contributions/ecommerce/ec_cart/ec_cart.module
===================================================================
--- sites/all/modules/contributions/ecommerce/ec_cart/ec_cart.module (revision 11507)
+++ sites/all/modules/contributions/ecommerce/ec_cart/ec_cart.module (working copy)
@@ -411,7 +411,7 @@
'#value' => format_currency($item->total),
);
$form['products'][$item->nid]['ops'] = array(
- '#value' => l(t('Remove'), "cart/delete/$nid", array('query' => drupal_get_destination())),
+ '#value' => l(t('Remove'), "cart/delete/{$item->nid}", array('query' => drupal_get_destination())),
);
$cart_total+= $item->total;
}
Comments
Comment #1
gordon commentedI have fixed this issue thanks, and also I have developed a test so this will not break again.