Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C2] Move AttendanceCalendar optional extra field "duration" to the c_attendance_calendar table #6077

Open
ywarnier opened this issue Feb 7, 2025 · 1 comment

Comments

@ywarnier
Copy link
Member

ywarnier commented Feb 7, 2025

  • create the c_attendance_calendar.duration field (decimal)
  • update the entity
  • add migration to create it, look for existing values in extra_field_values, transfer them to the new field, remove the extra_field_values, remove the extra_field
  • remove the configuration setting (was as follows in C1)
  • update the attendance calendar add/update form to add that this field is expressed in hours

This was the config setting in 1.11 (to be removed and the duration enabled by default in C2):

// Option to define duration for a calendar in attendance sheet.
// Create an attendance calendar extra field with field label "duration" of type "text".
// $_configuration['attendance_calendar_set_duration'] = false;
@ywarnier
Copy link
Member Author

#6053 should already fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants