We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5d25344 commit7d31e48Copy full SHA for 7d31e48
gitlab.py
@@ -420,7 +420,7 @@ def update(self, obj, **kwargs):
420
headers=self._createHeaders(content_type="application/json")
421
422
# build data that can really be sent to server
423
-data=obj._dataForGitlab()
+data=obj._dataForGitlab(extra_parameters=kwargs)
424
425
try:
426
r=requests.put(url,data=data,
@@ -942,9 +942,10 @@ class ProjectIssue(GitlabObject):
942
def_dataForGitlab(self,extra_parameters={}):
943
# Gitlab-api returns labels in a json list and takes them in a
944
# comma separated list.
945
-ifhasattr(self,"labels")andself.labelsisnotNone:
946
-labels=", ".join(self.labels)
947
-extra_parameters.update(labels)
+ifhasattr(self,"labels"):
+ifself.labelsisnotNoneandnotisinstance(self.labels,six.string_types):
+labels=", ".join(self.labels)
948
+extra_parameters['labels']=labels
949
950
returnsuper(ProjectIssue,self)._dataForGitlab(extra_parameters)
951