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

Add option to API to retrieve templates

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      civicrm/api/v3/Events.php includes this line...

      $eventDAO->whereAdd( '( is_template IS NULL ) OR ( is_template = 0 )' );

      That makes it impossible to return event templates. This patch makes that line the default, but allows you to include is_template=1 in the query to get a list of event templates.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              kreynen Kevin Reynen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: