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

Widget about is requred in contribution page creation process when widget is not enabled

    Details

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

      Description

      This problem has appeared because we no longer require the "Introductory Message" (intro_text) field on page 1 of the wizard. The Widget 'about' field default value is populated from that field - and now it can be empty.

      To fix this we need to modify Widget.php to set all fields to required = false in buiildQuickForm. Then add a formRule function which enforces the existing required field rules IF is_active is TRUE.

      Also please fix this NOTICE: which occurs when intro_text is empty...

      Notice: Undefined index: intro_text in xxxxxxxxx\administrator\components\com_civicrm\civicrm\CRM\Contribute\Form\Contribution\Main.php on line 61

      ----- Original post from Elin Waring ----
      When you get to the widget page and leave the box unchecked and attempt to go to the next page, it gives you a warning that says About field is required.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              mcsmom Elin Waring
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: