* [bug] fix backyard bug.

This commit is contained in:
sunguangming
2025-09-01 07:27:07 +00:00
parent b747047fa7
commit bc7b67f29a
+2 -5
View File
@@ -199,15 +199,12 @@ class mailTao extends mailModel
$objectModel = $objectType == 'kanbancard' ? $this->loadModel('kanban') : $this->loadModel($objectType);
if(!$objectModel) return false;
$getObjectMethod = $objectType == 'kanbancard' ? 'getCardByID' : 'getByID';
$getObjectMethod = $objectType == 'kanbancard' ? 'getCardByID' : 'fetchByID';
if(method_exists($objectModel, $getObjectMethod))
{
$object = call_user_func(array($objectModel, $getObjectMethod), $objectID);
}
else
{
$object = $this->fetchByID($objectID, $objectType);
}
if(!$object) return false;
if($objectType == 'doc' && $object->contentType == 'markdown')