mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
fix: Default value for email sending interval
This commit is contained in:
@@ -139,6 +139,16 @@ func (s *defaultLanguageDecorator) withDefaultProfileValueList(ctx context.Conte
|
||||
case *settingsmsg.Setting_MultiChoiceCollectionValue:
|
||||
newVal.Value.Value = multiChoiceCollectionToValue(val.MultiChoiceCollectionValue)
|
||||
requested[setting.GetId()] = newVal
|
||||
case *settingsmsg.Setting_SingleChoiceValue:
|
||||
sv := &settingsmsg.Value_StringValue{}
|
||||
for _, option := range val.SingleChoiceValue.Options {
|
||||
if option.GetDefault() {
|
||||
sv.StringValue = option.Value.GetStringValue()
|
||||
break
|
||||
}
|
||||
}
|
||||
newVal.Value.Value = sv
|
||||
requested[setting.GetId()] = newVal
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,5 +192,6 @@ func getDefaultValueList() map[string]*settingsmsg.ValueWithIdentifier {
|
||||
defaults.SettingUUIDProfileEventSpaceDisabled: nil,
|
||||
defaults.SettingUUIDProfileEventSpaceDeleted: nil,
|
||||
defaults.SettingUUIDProfileEventPostprocessingStepFinished: nil,
|
||||
defaults.SettingUUIDProfileEmailSendingInterval: nil,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user