mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 07:31:31 +00:00
Updated rowid generate function to sort the options array, (better for search function)
This commit is contained in:
@@ -231,7 +231,7 @@ class Cart {
|
||||
*/
|
||||
protected function generateRowId($id, $options)
|
||||
{
|
||||
return md5($id . serialize($options));
|
||||
return md5($id . serialize(ksort($options)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user