Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11014

Contribution amounts not saving without labels

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.2.3
    • Component/s: CiviContribute
    • Labels:

      Description

      In v4.1 and earlier, administrators could configure the Fixed Contribution Options for online contribution pages (Amounts tab) to display Amounts only. In 4.2.x, this functionality no longer works.

      Changes needed:
      1. If you enter a fixed amount in the grid w/o a label, the "save" silently fails (i.e. no price_field_option row is inserted - but not error is displayed). Behavior should be changed so that a price_field_option is saved w/ the 'amount'. Label and name columns will be NULL in this case.

      This is a regression bug related to price-set implementation.

      NOTE: I've already committed a change under this issue in CRM/Price/BAO/Field.php so that the "dash" separating label and amount is omitted if the label is empty. In 4.3, the layout is changed a bit more to eliminate the dash and show the amount before the label. (Committed revision 42799 - with DO NOT MERGE since trunk approach is different).

      — Original Post —
      contribution amounts are not showing on the contribution pages unless they have a label. I was able to save the page without the amount labels and no error message appeared. I only knew there was an issue when I went to test drive the page.

        Attachments

          Activity

            People

            • Assignee:
              pradeep.nayak Pradeep Nayak
              Reporter:
              jehanley Jane Hanley
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: