Unverified Commit c937338b authored by Max Wittig's avatar Max Wittig 🌍 Committed by GitHub
Browse files

Merge pull request #937 from sathieu/fix_labels_save

fix(labels): ensure label.save() works
parents 96088862 727f5361
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -914,7 +914,7 @@ class GroupLabelManager(ListMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTMa
        new_data = new_data or {}
        if name:
            new_data["name"] = name
        super().update(id=None, new_data=new_data, **kwargs)
        return super().update(id=None, new_data=new_data, **kwargs)

    # Delete without ID.
    @exc.on_http_error(exc.GitlabDeleteError)
@@ -3049,7 +3049,7 @@ class ProjectLabelManager(
        new_data = new_data or {}
        if name:
            new_data["name"] = name
        super().update(id=None, new_data=new_data, **kwargs)
        return super().update(id=None, new_data=new_data, **kwargs)

    # Delete without ID.
    @exc.on_http_error(exc.GitlabDeleteError)