Merge pull request #1727 from mlorb/ml-sci-3384

Fix bug when saving empty step description [SCI-3384]
This commit is contained in:
Miha Mencin 2019-05-07 16:35:12 +02:00 committed by GitHub
commit 4b76151e40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -530,7 +530,7 @@
var $nameInput = $form.find("#step_name");
var nameValid = textValidator(ev, $nameInput, 1,
<%= Constants::NAME_MAX_LENGTH %>);
var $descrTextarea = $form.find("#step_description");
var $descrTextarea = $form.find("#step_description_textarea");
var $tinyMCEInput = TinyMCE.getContent();
var descriptionValid = textValidator(ev, $descrTextarea, 0,
<%= Constants::RICH_TEXT_MAX_LENGTH %>, false, $tinyMCEInput);