Bug: follow function of food share points
Summary
The options to follow a fair share point don't give what they promise.
What is the current bug behavior?
If you decide to follow a fair share point, you get the choice to
a) receive emails [phrased not exclusively]
b) receive only internal notifications. [phrased exclusively]
What happens:
You get a bell for BOTH instead for EITHER OR.
If (b), you then get an internal notification. [nothing else, as intended] BUT: If you choose (a), then you get an internal notification. [Also no mail in my test environment. That is not intended behaviour.] <---
The settings page states: "Wenn Du auf der foodsharing-Homepage eine interne Nachricht geschickt bekommst, aber gerade nicht eingeloggt bist, kannst Du per E-Mail darüber informiert werden. Möchtest Du das?" (meaning if you would get an internal notifier and are logged in, then you shouldn't receive any notofication emails) I received no mail in the test environment for option (a).
Steps to reproduce
- Follow a fair share point
- Write a wallpost with another account
- See if you get a mail AND/OR bell
What is the expected correct behavior?
Naming things correctly and adding a third option:
- "via email notification and internally" -> Email and Bell
- "internal info messages only" -> Bell only
- "no notifications" -> neither of them
Possible fixes
- Food share points are added to the settings page in SettingsView.settingsInfo
- The submitted data is written to the db in SettingsControl.info
- It might need an adjustment of the InfoType constants