Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
2.2.1
-
None
-
Unknown
-
Description
If updating the Forum Application (with existing content including some answers) from a version before 2.2, the text of the answers is not displayed. If one views one of such answers in the object editor, one can see the text of the answer being stored in a deprecated property.
This is likely a consequence of XAFORUM-241.
If the database is mySQL, the following statements allow to mitigate the issue:
BEGIN; SET foreign_key_checks = 0; UPDATE xwikiproperties, xwikiobjects, xwikilargestrings SET XWP_NAME='description', XWL_NAME='description' WHERE XWP_NAME='answer' AND XWL_NAME = 'answer' AND XWP_ID = XWO_ID AND XWL_ID = XWP_ID AND XWO_CLASSNAME = 'ForumCode.AnswerClass'; SET foreign_key_checks = 1; COMMIT;