diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 6168093cf..0a74ff89a 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -1757,6 +1757,27 @@ EOF $sConfigJS = json_encode($aConfig); $oPage->add_ready_script("$('#$iId').ckeditor(function() { /* callback code */ }, $sConfigJS);"); // Transform $iId into a CKEdit + + $oPage->add_ready_script( +<<Get($sAttCode); if ($oAttDef instanceof AttributeCaseLog) { - $currValue = ' '; // Don't put an empty string, in case the field would be considered as mandatory... + $currValue = ''; // Put a single scalar value to force caselog to mock a new entry. For more info see N°1059. } if (is_object($currValue)) continue; // Skip non scalar values... if(!array_key_exists($currValue, $aValues[$sAttCode]))