Uploaded image for project: 'CiviVolunteer'
  1. CiviVolunteer
  2. VOL-247

Creating a project with no location gives a fatal error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None

      Description

      To reproduce:

      • Navigate to /civicrm/vol/#/volunteer/manage/0.
      • Fill out some fields, but leave the Location field blank.
      • Click Continue or Save and Done. Nothing happens.

      Some debugging code shows that volunteerProject.create is failing with:

      Mandatory key(s) missing from params array: one of (address, address_id, phone, phone_id, im, im_id, email, email_id)

      This appears to be coming from the LocBlock.create that happens early in the volunteerProject.create API. It appears we're creating an empty placeholder for the locBlock which seems wrong. I suspect something has changed in locBlock validation that breaks this already-questionable pattern.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pittstains Frank J. Gómez
                Reporter:
                pittstains Frank J. Gómez
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: