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

Quest Preapplication: Correct Form Logic Which is Creating Duplicated Organization (School) and Relationship Records

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Description

      (Anil - I've reviewed this in detail w/ Kurund - so check w/ him if you need more details)...

      The post process logic in Quest/Form/HighSchool.php and SchoolOther.php appears to have a bug such that existing school (contact-organization) and relationship records are duplicated on repeated Save's of the page. Apparently, the form is handling everything as an insertt, rather than determining whether one or more of the school fieldset "blocks" contains data for an existing school.

      You should be able to recreate by going back to an existing application in Edit mode, and pressing save and continue on the High School page. If there was one High School populated already on the form, that data will now exist twice in the DB (2 civicrm_contact records, 2 civicrm_organization records, 2 relationship records, and 2 custom_value records (one for each school contact record).

        Attachments

          Activity

            People

            • Assignee:
              anil Anil Kokitkar
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: