From 4f8603d15f2254efbf037b4a42e3b0e7a94b630a Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 29 Nov 2022 12:59:23 +0100 Subject: [PATCH] MT#56068 /api/resellerbrandings/:id change * :id is now the brainding's id instead of reseller_id. That was rather a bug and now fixed and consistent with the rest of the endpoints. Change-Id: I794e577499050a95ed68c21af3f963f9f8e9c274 --- lib/NGCP/Panel/Role/API/ResellerBrandings.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Role/API/ResellerBrandings.pm b/lib/NGCP/Panel/Role/API/ResellerBrandings.pm index 89d426168e..2a58be5b1b 100644 --- a/lib/NGCP/Panel/Role/API/ResellerBrandings.pm +++ b/lib/NGCP/Panel/Role/API/ResellerBrandings.pm @@ -69,7 +69,8 @@ sub _item_rs { sub item_by_id { my ($self, $c, $id) = @_; - return $self->item_rs($c)->search_rs({'reseller.id' => $id})->first; + my $item_rs = $self->item_rs($c); + return $item_rs->find($id); } sub resource_from_item {