EllisLab/CodeIgniter — Issue #960: _Update function in Cart library
Author: marcosgdf
Created: 2012-01-24 05:40:45+00:00
State: open

Hi,

There's a little bug in the _update function of the cart library. If you want to update something that is not the qty, like options or whatever, it doesn't update because the function _update returns false.

The problem is in /system/libraries/Cart.php, line 351

// Is the quantity zero? If so we will remove the item from the cart.
// If the quantity is greater than zero we are updating
if ($items['qty'] == 0)
{
unset($this->_cart_contents[$items['rowid']]);
}