On AbstractCompensation inherited classes, deadlines holding the 'other' ("Sonstige") type can exist without a comment.
This may lead to unclear deadline types, since a comment is necessary if the 'other' type has been selected.
Improvement
Add a validity check to the deadline form: If the 'other' type has been selected and no comment has been added, the comment field shall be highlighted and the user needs to add an explanation of the deadline. Similar behaviour can be found on the payment form where missing date leads to mandatory comment input.
# Status quo
On `AbstractCompensation` inherited classes, deadlines holding the 'other' ("Sonstige") type can exist without a comment.
This may lead to unclear deadline types, since a comment is necessary if the 'other' type has been selected.
# Improvement
Add a validity check to the deadline form: If the 'other' type has been selected and no comment has been added, the comment field shall be highlighted and the user needs to add an explanation of the deadline. Similar behaviour can be found on the payment form where missing date leads to mandatory comment input.
Status quo
On
AbstractCompensation
inherited classes, deadlines holding the 'other' ("Sonstige") type can exist without a comment.This may lead to unclear deadline types, since a comment is necessary if the 'other' type has been selected.
Improvement
Add a validity check to the deadline form: If the 'other' type has been selected and no comment has been added, the comment field shall be highlighted and the user needs to add an explanation of the deadline. Similar behaviour can be found on the payment form where missing date leads to mandatory comment input.
Merged in #346