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

Rename or wrap CRM_Core_Form::getContactID

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The form function $this->getContactID actually sets the contact ID as well as retrieving it.

      I propose to rename it setContactID & to add a function getContactID that just wraps it to reduce code change. Leaving it as getContactID risks the function call being removed when the resulting variable is not required

        Attachments

          Activity

            People

            • Assignee:
              Sudha Sudha Bisht
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: