fix error where joining cox to planned_event is not dispaying properly. The problem was the restructuring commit 7569798b00 (diff-0496fd5ec13efcfc97602dc5784170a0dd124e6e)
where I compared different ids
This commit is contained in:
parent
990a62fe16
commit
34280dbbea
@ -144,7 +144,7 @@ WHERE day=?",
|
||||
|
||||
let mut ret = Vec::new();
|
||||
for event in events {
|
||||
let cox = Registration::all_cox(db, event.trip_details_id).await;
|
||||
let cox = Registration::all_cox(db, event.id).await;
|
||||
let mut trip_type = None;
|
||||
if let Some(trip_type_id) = event.trip_type_id {
|
||||
trip_type = TripType::find_by_id(db, trip_type_id).await;
|
||||
|
Loading…
Reference in New Issue
Block a user