}
}
- //avoid the same price field label in Within PriceSet
- $priceFieldLabel = new CRM_Price_DAO_PriceField();
- $priceFieldLabel->label = $fields['label'];
- $priceFieldLabel->price_set_id = $form->_sid;
-
- $dupeLabel = FALSE;
- if ($priceFieldLabel->find(TRUE) && $form->getEntityId() != $priceFieldLabel->id) {
- $dupeLabel = TRUE;
- }
-
- if ($dupeLabel) {
- $errors['label'] = ts('Name already exists in Database.');
- }
-
if ((is_numeric(CRM_Utils_Array::value('count', $fields)) &&
empty($fields['count'])
) &&