mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3685 from modoboa/fix/use_domain_quota
Do not send wrong quota value when using default domain quota
This commit is contained in:
@@ -245,8 +245,9 @@ function preparePayload(payload) {
|
||||
cleaned_payload.mailbox.message_limit = null
|
||||
}
|
||||
if (
|
||||
cleaned_payload.mailbox.quota === undefined ||
|
||||
cleaned_payload.mailbox.quota === null
|
||||
!cleaned_payload.mailbox.use_domain_quota &&
|
||||
(cleaned_payload.mailbox.quota === undefined ||
|
||||
cleaned_payload.mailbox.quota === null)
|
||||
) {
|
||||
cleaned_payload.mailbox.quota = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user