mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
BUG: add fix for weekdays format for time slots db
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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'
|
||||
)
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user