Skip to content
Snippets Groups Projects

log seats and add position to export table in lectures

Closed Viktoria Wiebe requested to merge issue8-seat-logging-and-export into 5.0
17 unresolved threads
7 files
+ 136
3
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -240,6 +240,9 @@ class Course_MembersController extends AuthenticatedController
@@ -240,6 +240,9 @@ class Course_MembersController extends AuthenticatedController
$current_member->position = $i;
$current_member->position = $i;
$position[$current_member->position] = true;
$position[$current_member->position] = true;
$current_member->store();
$current_member->store();
 
$membername = $current_member->vorname . " " . $current_member->nachname;
 
StudipLog::log('SEAT_RESERVATION', $this->course_id, null,
 
sprintf('%s hat Sitzplatz %s erhalten', $membername, $current_member->position));
break;
break;
}
}
}
}
@@ -273,8 +276,12 @@ class Course_MembersController extends AuthenticatedController
@@ -273,8 +276,12 @@ class Course_MembersController extends AuthenticatedController
}
}
foreach ($current_members as $current_member) {
foreach ($current_members as $current_member) {
 
$old_position = $current_member->position;
$current_member->position = 0;
$current_member->position = 0;
$current_member->store();
$current_member->store();
 
$membername = $current_member->vorname . " " . $current_member->nachname;
 
StudipLog::log('SEAT_RESERVATION', $this->course_id, null,
 
sprintf('%s hat Sitzplatz %s zurückgegeben', $membername, $old_position));
}
}
}
}
Loading