@@ -, +, @@ counter to 23. --- api/v1/swagger/paths.json | 2 +- api/v1/swagger/paths/rotas.json | 2 +- installer/data/mysql/atomicupdate/stockrot_tables.sql | 6 +++--- installer/data/mysql/userpermissions.sql | 4 ++-- t/db_dependent/StockRotationItems.t | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) --- a/api/v1/swagger/paths.json +++ a/api/v1/swagger/paths.json @@ -25,7 +25,7 @@ }, "/illrequests": { "$ref": "paths/illrequests.json#/~1illrequests" - } + }, "/rotas/{rota_id}/stages/{stage_id}/position": { "$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position" } --- a/api/v1/swagger/paths/rotas.json +++ a/api/v1/swagger/paths/rotas.json @@ -55,7 +55,7 @@ "schema": { "$ref": "../definitions.json#/error" } - } + }, "500": { "description": "Internal server error", "schema": { --- a/installer/data/mysql/atomicupdate/stockrot_tables.sql +++ a/installer/data/mysql/atomicupdate/stockrot_tables.sql @@ -55,8 +55,8 @@ INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) V -- Permissions INSERT IGNORE INTO userflags (bit, flag, flagdesc, defaulton) VALUES - (22, 'stockrotation', 'Manage stockrotation operations', 0); + (23, 'stockrotation', 'Manage stockrotation operations', 0); INSERT IGNORE INTO permissions (module_bit, code, description) VALUES - (22, 'can_edit_rotas', 'Create, edit and delete rotas'), - (22, 'can_add_items_rotas', 'Add and remove items from rotas'); + (23, 'can_edit_rotas', 'Create, edit and delete rotas'), + (23, 'can_add_items_rotas', 'Add and remove items from rotas'); --- a/installer/data/mysql/userpermissions.sql +++ a/installer/data/mysql/userpermissions.sql @@ -82,6 +82,6 @@ INSERT INTO permissions (module_bit, code, description) VALUES (21, 'edit_templates', 'Create and update club templates'), (21, 'edit_clubs', 'Create and update clubs'), (21, 'enroll', 'Enroll patrons in clubs'), - (22, 'can_edit_rotas', 'Create, edit and delete rotas'), - (22, 'can_add_items_rotas', 'Add and remove items from rotas') + (23, 'can_edit_rotas', 'Create, edit and delete rotas'), + (23, 'can_add_items_rotas', 'Add and remove items from rotas') ; --- a/t/db_dependent/StockRotationItems.t +++ a/t/db_dependent/StockRotationItems.t @@ -86,7 +86,7 @@ subtest 'Tests for needs_repatriating' => sub { my $dbrota = $dbitem->stage->rota; my $newstage = $builder->build({ source => 'Stockrotationstage', - values => { + value => { rota_id => $dbrota->rota_id, position => 2, } @@ -247,7 +247,7 @@ subtest "Tests for advance." => sub { # Multi stages my $srstage = $builder->build({ source => 'Stockrotationstage', - values => { duration => 50 } + value => { duration => 50 } }); my $dbstage2 = Koha::StockRotationStages->find($srstage->{stage_id}); $dbstage2->move_to_group($dbitem->stage->rota_id); --