From b2a45e2e5f995bd45d63ba469cb508a9724c83c0 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 23 Dec 2024 11:41:25 +0000 Subject: [PATCH] Bug 36627: Fix typo "embeded" A search turned up more of these in other files. Fixed as well. Signed-off-by: Katrin Fischer (cherry picked from commit 3b86455e022a455eac01b0d6afb4796e0841b53d) Signed-off-by: Paul Derscheid --- Koha/ERM/Document.pm | 2 +- koha-tmpl/intranet-tmpl/lib/datatables/datatables.js | 2 +- t/db_dependent/api/v1/acquisitions_vendors.t | 8 ++++---- t/db_dependent/api/v1/erm_counter_logs.t | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Koha/ERM/Document.pm b/Koha/ERM/Document.pm index b4f5a1f855..67024698ed 100644 --- a/Koha/ERM/Document.pm +++ b/Koha/ERM/Document.pm @@ -37,7 +37,7 @@ Koha::ERM::Document - Koha ERM Document Object class sub to_api_mapping { return { - # Do not expose file_content to prevent the content to be fetch from the DB and sent over the network when embeded + # Do not expose file_content to prevent the content to be fetch from the DB and sent over the network when embedded file_content => undef, }; } diff --git a/koha-tmpl/intranet-tmpl/lib/datatables/datatables.js b/koha-tmpl/intranet-tmpl/lib/datatables/datatables.js index 32f880fc21..3521e7cc06 100644 --- a/koha-tmpl/intranet-tmpl/lib/datatables/datatables.js +++ b/koha-tmpl/intranet-tmpl/lib/datatables/datatables.js @@ -82952,7 +82952,7 @@ var MASKFUNCS = [ return ((i + j) % 2 + (i * j) % 3) % 2 === 0; }]; -// returns true when the version information has to be embeded. +// returns true when the version information has to be embedded. var needsverinfo = function (ver) { return ver > 6; }; diff --git a/t/db_dependent/api/v1/acquisitions_vendors.t b/t/db_dependent/api/v1/acquisitions_vendors.t index 9fd1e6d9dc..c5b2720387 100755 --- a/t/db_dependent/api/v1/acquisitions_vendors.t +++ b/t/db_dependent/api/v1/acquisitions_vendors.t @@ -96,15 +96,15 @@ subtest 'list() and delete() tests | authorized user' => sub { $t->get_ok( "//$userid:$password@/api/v1/acquisitions/vendors" => { 'x-koha-embed' => 'aliases' } ) ->status_is(200) - ->json_has('/0/aliases', 'aliases are embeded') - ->json_is('/0/aliases/0/alias' => 'alias 1', 'alias 1 is embeded') - ->json_is('/0/aliases/1/alias' => 'alias 2', 'alias 2 is embeded'); + ->json_has('/0/aliases', 'aliases are embedded') + ->json_is('/0/aliases/0/alias' => 'alias 1', 'alias 1 is embedded') + ->json_is('/0/aliases/1/alias' => 'alias 2', 'alias 2 is embedded'); for ( 0 .. 1 ) { $builder->build_object( { class => 'Koha::Subscriptions', value => { aqbooksellerid => $vendor->id } } ); } $t->get_ok( "//$userid:$password@/api/v1/acquisitions/vendors" => { 'x-koha-embed' => 'subscriptions+count' } ) - ->status_is(200)->json_has( '/0/subscriptions_count', 'subscriptions_count is embeded' ) + ->status_is(200)->json_has( '/0/subscriptions_count', 'subscriptions_count is embedded' ) ->json_is( '/0/subscriptions_count' => '2', 'subscription count is 2' ); $t->delete_ok( "//$userid:$password@/api/v1/acquisitions/vendors/" . $vendor->id ) diff --git a/t/db_dependent/api/v1/erm_counter_logs.t b/t/db_dependent/api/v1/erm_counter_logs.t index 07ead1ba1c..a5968543c6 100755 --- a/t/db_dependent/api/v1/erm_counter_logs.t +++ b/t/db_dependent/api/v1/erm_counter_logs.t @@ -81,7 +81,7 @@ subtest 'list() tests' => sub { $t->get_ok("//$userid:$password@/api/v1/erm/counter_logs")->status_is(200) ->json_is( [ $counter_log->to_api, $another_counter_log->to_api, ] ); - # Return 2 counter logs with patron embeded + # Return 2 counter logs with patron embedded $t->get_ok( "//$userid:$password@/api/v1/erm/counter_logs/" => { 'x-koha-embed' => 'patron' } )->status_is(200) ->json_is( [