caboose-cms 0.9.25 → 0.9.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/checkout_controller.rb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d61cd61f33861af8f6d6629ed21732da3b9f845
|
4
|
+
data.tar.gz: ac17118766ee2a78a539c7d44639766d4cbcc71a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c1dc5d7b14673ce914d9053ad1a43de195c619c709e156ac867d4744eb6ca81fc1b91eb19550831cc8583730e7317fa0266c10c21f32785e642d5443edb0d4a
|
7
|
+
data.tar.gz: 24d22a58ec6af37d01ec3c3c1f8ade46113cecc94f0adc9a6f0b30031f44c5b193c4af17169cfa5317d928fc4a715f771d304dfa4c89603276d8addefb82e9f8
|
@@ -215,7 +215,7 @@ module Caboose
|
|
215
215
|
if v.nil? || v.status == 'Deleted'
|
216
216
|
render :json => { :error => 'One or more of the products you are purchasing are no longer available.' }
|
217
217
|
return
|
218
|
-
elsif !vl.qty_within_range( vl.current_value + li.quantity )
|
218
|
+
elsif vl && !vl.qty_within_range( vl.current_value + li.quantity )
|
219
219
|
render :json => { :error => 'You have exceeded the limit you are allowed to purchase.' }
|
220
220
|
return
|
221
221
|
end
|
data/lib/caboose/version.rb
CHANGED