You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that if a global default status is set and then removed in mod/attendance/defaultstatus.php, then, the automatic marking configuration remains available in all attendance activities, including new activities that do not have a default status configured.
After installing the plugin, when adding an attendance activity and a session, automatic marking is not configurable due to the lack of a default status at activity level. It is ok, because it depends on having a default state configured. From here:
Set "Absent" as the global default status ("Automatically set when not marked") in mod/attendance/defaultstatus.php and save.
Delete the default status (accepting data deletion) from mod/attendance/defaultstatus.php and recreate it without setting it as default.
Create a new attendance activity, and verify that no default status is included at activity level status set.
Bug: Add a new session, and notice that automatic marking can be configured, even though there is no default status at the activity level. Save the configuration with automark to "set unmarked at end of session", and an error message should appear "The status set in use does not have a status to use when not marked.". At this point, the option to configure automark should not be available at all because there is no default status at the activity level. Save it with "automark" set to "disabled".
Re-set "Absent" as the global default status ("Automatically set when not marked") in mod/attendance/defaultstatus.php and save.
Bug: In the same activity from step 3, create a new session that ends in the current minute, and notice that automatic marking can still be configured, even though there is no default status at the activity level. Save the configuration with automark enabled to "set unmarked at end of session" (now allows the automark to be saved).
Bug: the original session of 4. now allows to be modified and set automark enabled (e.g. "set unmarked at end of session"). It should not since the activity does not have a set of states with a default state.
Run \mod_attendance\task\auto_mark and review de "warnings":
Execute scheduled task: Check for attendance sessions that require auto marking (mod_attendance\task\auto_mark)
... started 12:33:52. Current memory use 2.3 MB.
No unmarked status is configured for this session (id:3), to fix this update the <a href="https://xxx/mod/attendance/preferences.php?id=11">Status set</a>
No unmarked status is configured for this session (id:2), to fix this update the <a href="https://xxx/mod/attendance/preferences.php?id=11">Status set</a>
... used 10 dbqueries
... used 0.014538049697876 seconds
Scheduled task complete: Check for attendance sessions that require auto marking (mod_attendance\task\auto_mark)
In summary, after setting and removing a global default status, the automark functionality behaves unexpectedly.
The text was updated successfully, but these errors were encountered:
jumabgz
changed the title
Inconsistency in Automark Functionality After Changing Default Status in Attendance Module
Inconsistency in Automark functionality after changing default status in attendance module
Apr 16, 2024
thanks for the suggestion - I agree it makes sense to warn the teacher a bit better when this mis-configuration is in place when they create a session - if you have internal development capabilities, feel free to help further by submitting a pull request.
Hi,
I found that if a global default status is set and then removed in mod/attendance/defaultstatus.php, then, the automatic marking configuration remains available in all attendance activities, including new activities that do not have a default status configured.
After installing the plugin, when adding an attendance activity and a session, automatic marking is not configurable due to the lack of a default status at activity level. It is ok, because it depends on having a default state configured. From here:
In summary, after setting and removing a global default status, the automark functionality behaves unexpectedly.
Moodle 4.1.9+ (Build: 20240313)
Attendance 2023020107
Thank you,
Regards
The text was updated successfully, but these errors were encountered: