mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 05:48:19 +01:00
[Event/Manual] Fix dropdowns not showing any data.
This commit is contained in:
parent
8099a037e7
commit
b8e1e1d33a
@ -241,7 +241,7 @@ class EventManualDialog(
|
|||||||
|
|
||||||
with (b.dateDropdown) {
|
with (b.dateDropdown) {
|
||||||
db = app.db
|
db = app.db
|
||||||
profileId = profileId
|
profileId = this@EventManualDialog.profileId
|
||||||
showWeekDays = false
|
showWeekDays = false
|
||||||
showDays = true
|
showDays = true
|
||||||
showOtherDate = true
|
showOtherDate = true
|
||||||
@ -269,7 +269,7 @@ class EventManualDialog(
|
|||||||
|
|
||||||
with (b.timeDropdown) {
|
with (b.timeDropdown) {
|
||||||
db = app.db
|
db = app.db
|
||||||
profileId = profileId
|
profileId = this@EventManualDialog.profileId
|
||||||
showAllDay = true
|
showAllDay = true
|
||||||
showCustomTime = true
|
showCustomTime = true
|
||||||
lessonsDate = b.dateDropdown.getSelected() as? Date ?: Date.getToday()
|
lessonsDate = b.dateDropdown.getSelected() as? Date ?: Date.getToday()
|
||||||
@ -289,7 +289,7 @@ class EventManualDialog(
|
|||||||
|
|
||||||
with (b.teamDropdown) {
|
with (b.teamDropdown) {
|
||||||
db = app.db
|
db = app.db
|
||||||
profileId = profileId
|
profileId = this@EventManualDialog.profileId
|
||||||
showNoTeam = true
|
showNoTeam = true
|
||||||
loadItems()
|
loadItems()
|
||||||
selectTeamClass()
|
selectTeamClass()
|
||||||
@ -299,7 +299,7 @@ class EventManualDialog(
|
|||||||
|
|
||||||
with (b.subjectDropdown) {
|
with (b.subjectDropdown) {
|
||||||
db = app.db
|
db = app.db
|
||||||
profileId = profileId
|
profileId = this@EventManualDialog.profileId
|
||||||
showNoSubject = true
|
showNoSubject = true
|
||||||
showCustomSubject = false
|
showCustomSubject = false
|
||||||
loadItems()
|
loadItems()
|
||||||
@ -309,7 +309,7 @@ class EventManualDialog(
|
|||||||
|
|
||||||
with (b.teacherDropdown) {
|
with (b.teacherDropdown) {
|
||||||
db = app.db
|
db = app.db
|
||||||
profileId = profileId
|
profileId = this@EventManualDialog.profileId
|
||||||
showNoTeacher = true
|
showNoTeacher = true
|
||||||
loadItems()
|
loadItems()
|
||||||
selectDefault(editingEvent?.teacherId)
|
selectDefault(editingEvent?.teacherId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user