Skip to content

Commit

Permalink
Fix course_id null when editing coupon issue - EDLY-4262 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoor-ahmed-1 authored Feb 9, 2022
1 parent 75c5278 commit 78a9ac9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ecommerce/extensions/api/v2/views/coupons.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,6 @@ def update_range_data(self, request_data, vouchers):
# In case of enterprise, range_data has enterprise data in it as enterprise is defined in UPDATABLE_RANGE_FIELDS
# so Catalog should not be None if there is an enterprise is associated with it.
if voucher_range.catalog:
if not enterprise_customer_data:
range_data['catalog'] = None

if enterprise_customer_data and range_data.get('catalog_query'):
range_data['catalog'] = None

Expand Down

0 comments on commit 78a9ac9

Please sign in to comment.