From ff1f3c185b26e5fcca95705b32c1ccfe987a89a2 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 7 Dec 2016 20:34:31 +0000 Subject: [PATCH] (Retrofit from trunk) N.534 Cannot create a parent ticket from the ticket edition form. More generally, the object creation dialog box (opened by the mean of the PLUS button) fails as soon as any of the mandatory fields is an HTML field. Regression introduced in iTop 2.3.0, and due to HTML field edition widget (aka CKEditor) CI details) SVN:2.3[4497] --- js/extkeywidget.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/extkeywidget.js b/js/extkeywidget.js index 02d4076d27..40c3f63f81 100644 --- a/js/extkeywidget.js +++ b/js/extkeywidget.js @@ -364,6 +364,16 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper { if (this.name != '') { + if ($(this).hasClass('htmlEditor')) + { + var sId = $(this).attr('id'); + var editorInst = CKEDITOR.instances[sId]; + if (editorInst) + { + editorInst.updateElement(); + } + } + theMap[this.name] = this.value; } }