dev#239 fix js error for attribute not exist
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.
https://github.com/civicrm/org.civicrm.module.cividiscount/issues/239