Listing of contents after migration articles via rails-console doesn't work
The listing of the migrated content from one community to another via rails-console does not shown in a folder for the user, but they are present in the “Manage Content”. If an article "test" is created, the list of contents is displayed.
Steps to reproduce:
- Run the following script in the console (line by line):The script will migrate all articles of the communities on the array "Target_of_migration" to "Save Free Software" community. Migrated articles will receive the name of the community.
target_of_migration = ["Use the environment", "Use the wales", "Use Organic food"] migration_to = Community.find_by_name("Save Free Software") Community.all.each do |community| next if !target_of_migration.include? community.name article = community.articles.find_by_type("TinyMceArticle") article.set_name(community.name) migration_to.copy_article_tree article unless article.nil? end
- Login as "adminuser"
- Go to the CMS of the community "Save Free Software" and create a “Folder”. Edit any article (eg "Use the environment") to have the Parent folder: save-free-software/Folder;
- See that the article is not listed for the user in the folder (empety folder): http://localhost:3000/save-free-software/folder
- (Solution) Create a new article "test" in this folder. Update and the items will be there. If the "test" is deleted, list of contents again ceases to be displayed.