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

Activity form "type-based extension" feature doesn't support custom paths

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      There's some code near the bottom of CRM_Activity_Form_Activity::preprocess() that checks if a file with the same name as the activity type exists under a subfolder called Activity, and if so, it gets inserted into the activity form. I believe this was originally put in for Case but was made general enough to work for all activity types. However, in CRM_Activity_BAO_Activity::getFileForActivityTypeId(), it does a check for the file's existence but only looks under $civicrm_root.

      It should also look under the custom php path, if set.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shot Piotr Szotkowski
                Reporter:
                demeritcowboy Dave D
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: