Skip to content

Commit

Permalink
Increase campaign subject char limit. Closes #1909.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jul 17, 2024
1 parent c520337 commit c2e7c71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmd/campaigns.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,9 @@ func validateCampaignFields(c campaignReq, app *App) (campaignReq, error) {
if !strHasLen(c.Name, 1, stdInputMaxLen) {
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"))
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Campaign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</b-field>

<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 />
</b-field>

Expand Down

0 comments on commit c2e7c71

Please sign in to comment.