Uploaded image for project: 'CMS CONTENIDO'
  1. CMS CONTENIDO
  2. CON-2280

Article versioning does not work anymore due to code cleanup

    Details

      Description

      It appears like https://issues.contenido.org/browse/CON-2265 broke article versioning.

      Example client with sysadmin and advanced article versioning: Content -> Articles -> Main Navigation -> Start -> freeze article (make sure to also fix with not frozen article) -> raw data -> Copy to draft -> Internal server error (500):

      		PHP Fatal error:  Call to undefined method cApiArticleLanguageVersion::loadArticleVersionContent() in C:\projects\workspace\con_dev\contenido\classes\contenido\class.articlelanguage.php on line 301
      

      When visiting raw data again each time this shows up:

      		PHP Warning:  max() [<a href='function.max'>function.max</a>]: Array must contain at least one element in C:\projects\workspace\con_dev\contenido\includes\include.con_content_list.php on line 629
      

      Example client with sysadmin and simple article versioning:
      Content -> Articles -> Main Navigation -> Start -> Just Unlimited -> raw data -> make some changes and save -> Go to older version -> Copy to Published Version -> Internal server error (500)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomas.stauer thomas.stauer
                Reporter:
                thomas.stauer thomas.stauer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: