Skip to content
Snippets Groups Projects
Commit 33f12b79 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix userdata export for consultations, fixes #762

parent 7e1638b7
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ class ConsultationModule extends CorePlugin implements StudipModule, SystemPlugi
function ($block) {
return $block->toRawArray();
},
"teacher_id = :user_id OR (range_id = :user_id AND range_type = 'user')",
"range_id = :user_id AND range_type = 'user'",
[':user_id' => $storage->user_id]
)
);
......@@ -132,8 +132,19 @@ class ConsultationModule extends CorePlugin implements StudipModule, SystemPlugi
function ($booking) {
return $booking->toRawArray();
},
'user_id = ?',
[$storage->user_id]
'user_id = :user_id',
[':user_id' => $storage->user_id]
)
);
$storage->addTabularData(
_('Terminverantwortlichkeiten'),
'consultation_responsibilities',
ConsultationResponsibility::findAndMapBySQL(
function ($responsibility) {
return $responsibility->toRawArray();
},
"range_id = :user_id AND range_type = 'user'",
[':user_id' => $storage->user_id]
)
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment