diff --git a/module/gitlab/model.php b/module/gitlab/model.php index ff4437dab1..46415d56b0 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -612,6 +612,9 @@ class gitlabModel extends model */ public function apiUpdateIssue($gitlabID, $projectID, $issueID, $objectType, $object, $objectID = null) { + /* Get full object when desc is empty. */ + if(!isset($object->description) || (isset($object->description) && $object->description == '')) $object = $this->loadModel($objectType)->getByID($objectID); + if(!isset($object->id) && !empty($objectID)) $object->id = $objectID; $issue = $this->parseObjectToIssue($gitlabID, $projectID, $objectType, $object); $apiRoot = $this->getApiRoot($gitlabID);