From f7f281df0ab0b2e15de7e3982ed528d2aa92fc10 Mon Sep 17 00:00:00 2001 From: Elias Date: Mon, 13 Oct 2025 10:03:34 +0000 Subject: [PATCH] Bug 40826: nbofuser increment when importing report from mana Test plan: 1. Connect your koha instance to an instance of mana, with an account that is validated. (make sure activationdate is not null for your librarian) 2. Select a report already present on the mana instance to verify if the nbofuser will be incremented or create a new one 3. Import it in koha by searching it's name in the "create with mana" menu 4. Once imported, check on the mana instance that the nbofuser has been incremented. --- svc/mana/use | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/svc/mana/use b/svc/mana/use index 446c62e3d5..37cb367428 100755 --- a/svc/mana/use +++ b/svc/mana/use @@ -49,6 +49,12 @@ my $resource; if ( $input->param('saveinbase') ) { $resource = { id => $package->new_from_mana( $result->{data} )->id }; + Koha::SharedContent::increment_entity_value( + scalar $input->param('resource'), + scalar $input->param('id'), + 'nbofusers', + 1 + ); } else { $resource = $result->{data}; } -- 2.39.5