Skip to content

Make organization reference_prefix required#3056

Merged
oriolgual merged 2 commits intomasterfrom
fix/organization-reference-prefix-is-required
Mar 21, 2018
Merged

Make organization reference_prefix required#3056
oriolgual merged 2 commits intomasterfrom
fix/organization-reference-prefix-is-required

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

🎩 What? Why?

Organization's reference_prefix is required at the model level, but it isn't at the form level, so whenever a user tries to set it blank in the form and submit it, the server raises an error.

This PR validates the presence of this field at the form level, so it appears as required and is correctly validated.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry

📷 Screenshots (optional)

Description

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 21, 2018

Codecov Report

Merging #3056 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3056      +/-   ##
==========================================
+ Coverage   98.62%   98.62%   +<.01%     
==========================================
  Files        1699     1699              
  Lines       40602    40605       +3     
==========================================
+ Hits        40042    40046       +4     
+ Misses        560      559       -1

@oriolgual oriolgual merged commit 76f3d75 into master Mar 21, 2018
@oriolgual oriolgual deleted the fix/organization-reference-prefix-is-required branch March 21, 2018 09:18
@ghost ghost removed the status: WIP label Mar 21, 2018
rbngzlv added a commit that referenced this pull request Mar 21, 2018
* master:
  [RFC] Use cells for meeting m cards (#3022)
  Do not force Postgresql user to be admin when enabling trigram extension (#3053)
  Make organization reference_prefix required (#3056)
  admin can duplicate/copy meetings (#3051)
  Fix question form errors not being displayed (#3046)
  Erb whitespace cutting (#3047)
  Show debates statistics on space show and homepage (#3016)
  Fix broken translated field after form errors (#3026)
  Move decidim executable to "exe" folder (#3028)
  Friendlier buttons (#3027)
  Feedback needed after Endorsing when user has no user_groups (#2998)
  Fix seeding error on generator specs (#3021)
  fix spelling error in threshold (#3019)
  Migration plus seeds (#2933)
@mrcasals mrcasals removed this from the Release v.0.11.0 milestone Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reference prefix technically needed but not required to try to save settings

2 participants