return $priceField;
}
+ if (!empty($params['id']) && empty($priceField->html_type)) {
+ $priceField->html_type = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceField', $params['id'], 'html_type');
+ }
$optionsIds = array();
$maxIndex = CRM_Price_Form_Field::NUM_OPTION;
if ($fieldValue->find(TRUE)) {
$optionsIds['id'] = $fieldValue->id;
}
+
+ //Update price_field_value label when edited inline.
+ if (!empty($params['id']) && $priceField->label != $fieldValue->label) {
+ $fieldValue->label = $priceField->label;
+ $fieldValue->save();
+ }
}
$defaultArray = array();
//html type would be empty in update scenario not sure what would happen ...