Browse Source

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)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4496 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 years ago
parent
commit
0781b107c7
1 changed files with 10 additions and 0 deletions
  1. 10 0
      js/extkeywidget.js

+ 10 - 0
js/extkeywidget.js

@@ -364,6 +364,16 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
 				{
 				{
 					if (this.name != '')
 					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;
 						theMap[this.name] = this.value;
 					}
 					}
 				}
 				}