mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-07 22:06:23 +08:00
Increase campaign subject char limit. Closes #1909.
This commit is contained in:
parent
c520337a36
commit
c2e7c713ca
2 changed files with 4 additions and 2 deletions
|
@ -551,7 +551,9 @@ func validateCampaignFields(c campaignReq, app *App) (campaignReq, error) {
|
||||||
if !strHasLen(c.Name, 1, stdInputMaxLen) {
|
if !strHasLen(c.Name, 1, stdInputMaxLen) {
|
||||||
return c, errors.New(app.i18n.T("campaigns.fieldInvalidName"))
|
return c, errors.New(app.i18n.T("campaigns.fieldInvalidName"))
|
||||||
}
|
}
|
||||||
if !strHasLen(c.Subject, 1, stdInputMaxLen) {
|
|
||||||
|
// Larger char limit for subject as it can contain {{ go templating }} logic.
|
||||||
|
if !strHasLen(c.Subject, 1, 5000) {
|
||||||
return c, errors.New(app.i18n.T("campaigns.fieldInvalidSubject"))
|
return c, errors.New(app.i18n.T("campaigns.fieldInvalidSubject"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<b-field :label="$t('campaigns.subject')" label-position="on-border">
|
<b-field :label="$t('campaigns.subject')" label-position="on-border">
|
||||||
<b-input :maxlength="200" v-model="form.subject" name="subject" :disabled="!canEdit"
|
<b-input :maxlength="5000" v-model="form.subject" name="subject" :disabled="!canEdit"
|
||||||
:placeholder="$t('campaigns.subject')" required />
|
:placeholder="$t('campaigns.subject')" required />
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue