From 46e8f80965372facc5d7fbe5f8fec06d90128dd3 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Mon, 6 May 2019 17:14:19 +0200 Subject: [PATCH] Fix bug when saving empty step description --- app/assets/javascripts/protocols/steps.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/protocols/steps.js.erb b/app/assets/javascripts/protocols/steps.js.erb index 3592fce11..cf59c4dc4 100644 --- a/app/assets/javascripts/protocols/steps.js.erb +++ b/app/assets/javascripts/protocols/steps.js.erb @@ -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);