diff --git a/module/webhook/model.php b/module/webhook/model.php index abb3c54fc2..209f021344 100644 --- a/module/webhook/model.php +++ b/module/webhook/model.php @@ -417,7 +417,7 @@ class webhookModel extends model $object = $this->dao->select('*')->from($this->config->objectTables[$objectType])->where('id')->eq($objectID)->fetch(); $field = $this->config->action->objectNameFields[$objectType]; $host = empty($webhook->domain) ? common::getSysURL() : $webhook->domain; - $viewLink = $this->getViewLink($objectType == 'kanbancard' ? 'kanban' : $objectType, $objectType == 'kanbancard'? $object->kanban : $objectID); + $viewLink = $this->getViewLink($objectType == 'kanbancard' ? 'kanban' : $objectType, $objectType == 'kanbancard' ? $object->kanban : $objectID); $objectTypeName = ($objectType == 'story' and $object->type == 'requirement') ? $this->lang->action->objectTypes['requirement'] : $this->lang->action->objectTypes[$objectType]; $title = $this->app->user->realname . $this->lang->action->label->$actionType . $objectTypeName; $text = $title . ' ' . "[#{$objectID}::{$object->$field}](" . $host . $viewLink . ")";