From 514989cc5aad5c6e309be4c99d218a92dc8f7316 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 6 Jul 2022 12:13:48 +0200 Subject: [PATCH] TT#184300 journals alawys write reseller_id * if $resource does not have reseller_id then the user's one is used to write into the journal entry Change-Id: I33ab6fe6271bd6be156b247c830eecea6e2f63ea --- lib/NGCP/Panel/Utils/Journal.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Journal.pm b/lib/NGCP/Panel/Utils/Journal.pm index 577aaf2981..1c016b346f 100644 --- a/lib/NGCP/Panel/Utils/Journal.pm +++ b/lib/NGCP/Panel/Utils/Journal.pm @@ -655,7 +655,7 @@ sub _create_journal { } - $journal{reseller_id} = $resource->{reseller_id}; + $journal{reseller_id} = $resource->{reseller_id} // $c->user->reseller_id; $journal{role_id} = NGCP::Panel::Utils::UserRole::resolve_role_id($c, $c->user); $journal{tx_id} = $c->session->{api_request_tx_id};