forgejo/modules
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
..
actions Fix wrong status of Set up Job when first step is skipped (#32120) 2024-09-29 11:52:09 +02:00
activitypub Use forum.gitea.com instead of old URL (#31989) 2024-09-09 20:54:47 +02:00
analyze
assetfs
auth
avatar
base fix: extend forgejo_auth_token table 2024-11-15 11:33:17 +01:00
cache Increase cacheContextLifetime to reduce false reports (#32011) 2024-09-14 17:09:03 +02:00
charset
container
csv
emoji
eventsource fix: use better code to group UID and stopwatches 2024-11-17 19:18:45 +00:00
forgefed
generate
git fix(test): TestGitAttributeCheckerError must allow broken pipe 2024-11-18 11:32:19 +00:00
gitgraph
gitrepo
graceful
hcaptcha
highlight [BUG] Make chroma match case-insenstive 2024-10-11 17:35:54 +00:00
hostmatcher Support allowed hosts for migrations to work with proxy (#32025) 2024-09-14 17:52:54 +02:00
html
httpcache Fix wrong last modify time (#32102) 2024-09-27 08:13:30 +00:00
httplib Fix wrong last modify time (#32102) 2024-09-27 08:13:30 +00:00
indexer Fixed race condition when deleting documents by repoId in ElasticSearch (#32185) 2024-10-06 11:45:22 +02:00
issue/template
json
keying
label
lfs
log
markup Fix and refactor markdown rendering (#32522) 2024-11-17 20:50:50 +01:00
mcaptcha
metrics
migration
nosql [FEAT] Only implement used API of Redis client 2024-08-30 04:33:15 +02:00
optional
options
packages fix: handle renamed dependency for cargo registery 2024-11-13 22:56:30 +00:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue chore: update mock redis client 2024-09-01 05:42:34 +02:00
recaptcha
references
regexplru
repository
secret
session [FEAT] Only implement used API of Redis client 2024-08-30 04:33:15 +02:00
setting fix: Specify default value for EXPLORE_DEFAULT_SORT. 2024-10-20 23:07:18 +00:00
sitemap
ssh
storage
structs fix: Allow Organisations to remove the Email Address (#5517) 2024-11-20 12:32:36 +00:00
svg
sync
system
templates Lazy load avatar images (#32051) 2024-09-27 08:13:29 +00:00
test
testlogger fix: make branch protection work for new branches 2024-10-24 20:21:43 +00:00
timeutil
translation
turnstile
typesniffer
updatechecker
uri
user
util feat: add IfZero utility function 2024-09-27 08:13:29 +00:00
validation
web
webhook
zstd Cache generated binary across jobs 2024-08-26 23:43:09 +02:00