Adding hooks to MessageTemplates CRM-12265
authorKeith Morgan <keith@wellebee.com>
Tue, 2 Apr 2013 09:22:06 +0000 (04:22 -0500)
committerKeith Morgan <keith@wellebee.com>
Tue, 2 Apr 2013 09:22:06 +0000 (04:22 -0500)
CRM/Core/BAO/MessageTemplates.php

index 0963e940a1b7111dd502ecf1081336259c72b803..83af344c5160ec33dcacfd5ad3c2e18f2115c22d 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Core_BAO_MessageTemplates extends CRM_Core_DAO_MessageTemplates {
     $messageTemplates->copyValues($params);
     $messageTemplates->save();
 
-    CRM_Utils_Hook::post($hook, 'MessageTemplate', $messageTemplates>id, $messageTemplates);
+    CRM_Utils_Hook::post($hook, 'MessageTemplate', $messageTemplates->id, $messageTemplates);
     return $messageTemplates;
   }