Skip to content

Commit

Permalink
[Backport 2.10.x] [Fixes #4954] only needed attributes added to cooki…
Browse files Browse the repository at this point in the history
…e, when adding layer to cart (#4998)

* only add relevant info to cookie item, when adding to cart

* removed blank lines
  • Loading branch information
backporting[bot] authored and Alessio Fabiani committed Oct 6, 2019
1 parent 1f45fa9 commit 165d7c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion geonode/static/geonode/js/search/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@

if(this.getItemById(item.id) === null){
this.getCart().items.push(item);
$cookies.putObject(item['uuid'], item);
var cookie_item={};
cookie_item['id'] = item.id
cookie_item['detail_url'] = item.detail_url
$cookies.putObject(item['uuid'], cookie_item);
}
}

Expand Down

0 comments on commit 165d7c6

Please sign in to comment.