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

Case API may throw SQL errors when case_id not provided

    Details

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

      Description

      Should Case API work when passed an id (instead of case_id) parameter?

      CiviCRM Entity calls it this way from CiviCRMEntityController->save() and passes in only an ID.

      I thought this was CiviCRM API standard but Case API doesn't like it. Raised by Gemma.

      Anyway easy patch to wrap it so it doesn't blow up - maybe this is or isn't The Way. IDK.

        Attachments

        1. update_with_id_param.png
          74 kB
          Jitendra Purohit
        2. updated_with_case_id_param.png
          70 kB
          Jitendra Purohit

          Activity

            People

            • Assignee:
              xurizaemon Chris Burgess
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: