anteo / redmine_custom_workflows

Allows to create custom workflows for Redmine
http://www.redmine.org/plugins/custom-workflows
GNU General Public License v2.0
182 stars 72 forks source link

error message when 'notes' is empty #166

Closed demenois closed 4 years ago

demenois commented 4 years ago

Hello, I write you to have help on custom workflow plugin please !!!!

I would just like to add a control when i save a redmine. A text in "Notes" must be write. If i save without text : i would have an error message when i click on "save"

Thanks

demenois commented 4 years ago

It's ok, i found : if !notes.present? raise WorkflowError, "ERRRRRRRROOOOOOOORRRRRRRR" end