Przeglądaj źródła

N.561 Could not add images into the description of a ticket in the legacy portal, and losing images added into the case log (update from the portal, issue occuring when the CRON is enabled)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4521 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 lat temu
rodzic
commit
a5422a299b
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      portal/index.php

+ 5 - 2
portal/index.php

@@ -600,6 +600,8 @@ EOF
 		});
 EOF
 );
+		// Enable the button to upload images (or cut and paste of images)
+		$oP->add_ready_script(InlineImage::EnableCKEditorImageUpload($oRequest, utils::GetUploadTempId($oP->GetTransactionId())));
 	}
 	else
 	{
@@ -1147,8 +1149,9 @@ EOF
 
 	$oP->add('</table>');
 	$oP->add('</div>');
-	
-	$oP->add_ready_script(InlineImage::EnableCKEditorImageUpload($oObj, 'zzzzz'));
+
+	// Enable the button to upload images (or cut and paste of images)
+	$oP->add_ready_script(InlineImage::EnableCKEditorImageUpload($oObj, utils::GetUploadTempId($oP->GetTransactionId())));
 	$oP->WizardFormEnd();
 	$oP->add('</div>');
 }