Bug 38201: Fix composition API migration omissions

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Matt Blenkinsop 2025-06-26 10:07:39 +01:00 committed by Lucas Gass
parent 0b80976cb3
commit ee2a4f89e5
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
6 changed files with 11 additions and 12 deletions

View File

@ -221,12 +221,11 @@ export default {
let av_match = av_categories.find(
element => element.category_name == av_cat
);
av_options[av_cat] = av_match.authorised_values.map(
av => ({
av_options.value[av_cat] =
av_match.authorised_values.map(av => ({
value: av.value,
label: av.description,
})
);
}));
});
// Iterate on available fields
@ -253,7 +252,7 @@ export default {
if (
available_field.authorised_value_category_name
) {
let av_value = this.av_options[
let av_value = av_options.value[
available_field
.authorised_value_category_name
].filter(

View File

@ -149,7 +149,7 @@ export default {
},
error => {}
);
this.clearForm();
clearForm();
};
const clearForm = () => {
file.value = {

View File

@ -49,6 +49,7 @@ import ButtonSubmit from "../ButtonSubmit.vue";
import { APIClient } from "../../fetch/api-client.js";
import UsageStatisticsReportBuilder from "./UsageStatisticsReportBuilder.vue";
import UsageStatisticsSavedReports from "./UsageStatisticsSavedReports.vue";
import { $__ } from "../../i18n";
export default {
setup(props) {
@ -66,8 +67,8 @@ export default {
await client.usage_data_providers.getAll().then(
result => {
if (result.length === 0) {
this.setError(
this.$__(
setError(
$__(
"No data providers have been created - no report data will be available"
)
);

View File

@ -23,7 +23,7 @@
{{ selectedOptionLabel }}
</template>
<template #list-footer>
<li v-show="hasNextPage && !this.search" ref="load">
<li v-show="hasNextPage && !search" ref="load">
{{ $__("Loading more options...") }}
</li>
</template>

View File

@ -281,7 +281,7 @@ export default {
let table_col = db_column.split(".");
let table = table_col[0];
let col = table_col[1];
let api_attribute = this.api_mappings[table][col] || col;
let api_attribute = api_mappings[table][col] || col;
return table == "biblio" || table == "biblioitems"
? item.value.biblio[api_attribute]
: item.value[api_attribute];

View File

@ -193,7 +193,7 @@ export default {
let table_col = db_column.split(".");
let table = table_col[0];
let col = table_col[1];
let api_attribute = this.api_mappings[table][col] || col;
let api_attribute = api_mappings[table][col] || col;
return table == "biblio" || table == "biblioitems"
? item.biblio[api_attribute]
: item[api_attribute];
@ -273,7 +273,6 @@ export default {
setWarning,
loading,
loaded,
api_mappings,
train,
items,
train_items,