spree_zone_pricing 0.1.63 → 0.1.64
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ class Spree::Admin::ZoneCurrenciesController < Spree::Admin::BaseController
|
|
4
4
|
zones = Spree::Zone.all
|
5
5
|
zones.each do |zone|
|
6
6
|
zone_currency = ZoneCurrency.find_by_zone_id(zone.id)
|
7
|
-
if
|
7
|
+
if zone_currency.nil?
|
8
8
|
zone_currency = ZoneCurrency.new
|
9
9
|
zone_currency.zone_id = zone.id
|
10
10
|
zone_currency.currency = CurrencyPrice.currency_types[0]
|