Skip to content

Commit

Permalink
UPGRADING 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrancken@gmail.com committed Apr 4, 2014
1 parent 5ec07d5 commit 8bcda97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/model/ComplexPriceObject.php
Expand Up @@ -82,9 +82,8 @@ public function getCMSFields() {
else {
$fields->removeByName("EcommerceCountries");
}
$discountCouponOptions = DiscountCouponOption::get()
if($discountCouponOptions->count()) {
$fields->replaceField("DiscountCouponOptions", new CheckboxSetField("DiscountCouponOptions", "Discount Coupons", $discountCouponOptions->map()->toArray()));
if(DiscountCouponOption::get()->count()) {
$fields->replaceField("DiscountCouponOptions", new CheckboxSetField("DiscountCouponOptions", "Discount Coupons", DiscountCouponOption::get()->map()->toArray()));
}
else {
$fields->removeByName("DiscountCouponOptions");
Expand Down

0 comments on commit 8bcda97

Please sign in to comment.