소스 검색

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 년 전
부모
커밋
0781b107c7
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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).hasClass('htmlEditor'))
+						{
+							var sId = $(this).attr('id');
+							var editorInst = CKEDITOR.instances[sId];
+							if (editorInst)
+							{
+								editorInst.updateElement();
+							}
+						}
+
 						theMap[this.name] = this.value;
 					}
 				}