* Get full object when desc is empty.

This commit is contained in:
dingguodong
2021-07-09 18:02:28 +08:00
parent fdb69a81b1
commit d27efcb9ea
+3
View File
@@ -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);