Whenever one checks a given deadline, the 'Group' of the checked deadline is reset to the default group, or as set in the preferences.
The problem seems to be in the condition here in the #update() method.
Ideally one would want the default group set only when the user tries to explicitly update the group field to a whitespace or empty String(""). Right now, if the group is not passed(null) to the DeadlineProvider#update(), it is simply overwritten instead of preserving the original value.
Whenever one checks a given deadline, the 'Group' of the checked deadline is reset to the default group, or as set in the preferences.
The problem seems to be in the condition here in the
#update()
method.Ideally one would want the default group set only when the user tries to explicitly update the group field to a whitespace or empty String(
""
). Right now, if the group is not passed(null
) to theDeadlineProvider#update()
, it is simply overwritten instead of preserving the original value.