forgejo/routers/web/org
JakobDev da7e85c819 fix: Allow Organisations to remove the Email Address (#5517)
It is possible to set a Email for a Organization. This Email is optional and only used to be displayed on the profile page. However, once you set an EMail, you can no longer remove it. This PR fixes that.

While working on the tests, I found out, that the API returns a 500 when trying to set an invalid EMail. I fixed that too. It returns a 422 now.

Fixes #4567

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5517
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: JakobDev <jakobdev@gmx.de>
Co-committed-by: JakobDev <jakobdev@gmx.de>
(cherry picked from commit 45fa9e5ae9)
2024-11-20 12:32:36 +00:00
..
setting Show repo count in blocked users tab (#3601) 2024-05-02 15:51:27 +00:00
home.go Fix sort order for organization home and user profile page (#31921) 2024-09-09 20:54:39 +02:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
members.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
org.go feat(i18n): allow different translations of creation links and titles (#4829) 2024-08-07 16:54:05 +00:00
org_labels.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
projects.go Add missed return after ctx.ServerError (#31130) 2024-06-02 16:26:54 +02:00
projects_test.go Rename project board -> column to make the UI less confusing (#30170) 2024-06-02 09:42:39 +02:00
setting.go fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
setting_oauth2.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
setting_packages.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
teams.go [BUG] Don't allow owner team with incorrect unit access 2024-10-14 19:59:17 +00:00