Skip to content

dev#239 fix js error for attribute not exist

bgm requested to merge github/fork/sunilpawar/dev_239 into master

Created by: sunilpawar

When you create Multiple price field in one price set, and one of the price field is not required, then civicrm give additional option to say - none -, this element does not contain data-amount attribute. This lead to generate JS Error.

This fix, will check data-amount attribute exist. if not, it return for continue next iteration.

Screenshot 2020-08-30 at 7 15 07 PM

https://github.com/civicrm/org.civicrm.module.cividiscount/issues/239

Merge request reports