BUG: add fix for weekdays format for time slots db

This commit is contained in:
Ivymaster
2026-05-20 13:46:54 +02:00
parent 13684e638f
commit f3e1208f27
5 changed files with 29 additions and 10 deletions
@@ -320,9 +320,7 @@ export default {
return getAllClassTimeValidityPeriodsResponse.data.map(
function (period) {
period.organisationseinheit_bezeichnung_extended =
period.organisationseinheit_bezeichnung +
" - " +
period.organisationseinheit_organisationseinheittyp_kurzbz;
"[" + period.organisationseinheit_organisationseinheittyp_kurzbz + "] " + period.organisationseinheit_bezeichnung;
if (!period.studienplan_bezeichnung) {
period.studienplan_bezeichnung = generalWord;
}
@@ -375,7 +373,7 @@ export default {
},
filterOrganizationalUnits(event) {
let defaultItem = {
label: "----------",
label: this.$p.t("ui", "dropdownEmptyOption"),
value: null,
};
@@ -395,7 +393,7 @@ export default {
},
filterSemesters(event) {
let defaultItem = {
label: "----------",
label: this.$p.t("ui", "dropdownEmptyOption"),
value: null,
};
@@ -36,7 +36,7 @@ export default {
return {
databaseId: slot.id,
id: slot.identifier,
weekday: slot.wochentag === 0 ? 7 : slot.wochentag,
weekday: slot.wochentag + 1,
type: slot.unterrichtszeitentyp_kurzbz,
startTime: slot.startTime,
endTime: slot.endTime,
@@ -88,7 +88,7 @@ export default {
.unterrichtszeitengueltigkeit_id,
{
unterrichtszeiten: this.classTimeSlots.map((slot) => {
slot.wochentag = parseInt(slot.wochentag) === 7 ? 0 : slot.wochentag;
slot.wochentag = parseInt(slot.wochentag)- 1;
return slot;
}),
},
@@ -110,7 +110,7 @@ export default {
.unterrichtszeitengueltigkeit_id,
{
unterrichtszeiten: this.classTimeSlots.map((slot) => {
slot.wochentag = parseInt(slot.wochentag) === 7 ? 0 : slot.wochentag;
slot.wochentag = parseInt(slot.wochentag)- 1;
return slot;
}),
},
@@ -287,7 +287,7 @@ export default {
return {
databaseId: slot.id,
id: slot.identifier,
weekday: parseInt(slot.wochentag) === 0 ? 7 : slot.wochentag,
weekday: parseInt(slot.wochentag) + 1,
type: slot.unterrichtszeitentyp_kurzbz,
startTime: slot.uhrzeit_von,
endTime: slot.uhrzeit_bis,
@@ -93,7 +93,7 @@ export default {
return {
databaseId: slot.id,
id: slot.identifier,
weekday: parseInt(slot.wochentag) === 0 ? 7 : slot.wochentag,
weekday: parseInt(slot.wochentag) + 1,
type: slot.unterrichtszeitentyp_kurzbz,
startTime: slot.uhrzeit_von,
endTime: slot.uhrzeit_bis,
+21
View File
@@ -58656,6 +58656,27 @@ I have been informed that I am under no obligation to consent to the transmissio
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'dropdownEmptyOption',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => '--keine Auswahl--',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => '--no selection--',
'description' => '',
'insertvon' => 'system'
)
)
),
);