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

CRM_Import_DataSource_SQL::postProcess contains a call to $this->set() but the set() function is not defined.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      While troubleshooting an unrelated error, I noticed the following code in CRM/Import/DataSource/SQL.php

      $this->set('importTableName', $importJob->getTableName());

      But there is no set() function defined within the CRM_Import_DataSource_SQL class.

      I see that:

      class CRM_Import_DataSource_SQL extends CRM_Import_DataSource

      But in searching through CRM/Import/DataSource.php I find no set() function defined within the CRM_Import_DataSource class, either.

      EDIT: As it turns out, the postProcess() function is never called. The attached patch resolves the problem by deleting the function body, converting it to a stub.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: