diff options
Diffstat (limited to 'Week9/src/com/camilstaps/shop/Order.java')
-rw-r--r-- | Week9/src/com/camilstaps/shop/Order.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Week9/src/com/camilstaps/shop/Order.java b/Week9/src/com/camilstaps/shop/Order.java index 92d04d7..2b0c5a7 100644 --- a/Week9/src/com/camilstaps/shop/Order.java +++ b/Week9/src/com/camilstaps/shop/Order.java @@ -29,7 +29,7 @@ public class Order extends DatabaseItem { for (Article a : user.getCart().getArticles()) { articles.add(a); } - user.getCart().clear(); + user.getCart().getArticles().clear(); } public User getUser() { |