Jahia / bootstrap4

This is a Bootstrap 4 implementation of http://getbootstrap.com for Digital Experience Manager
MIT License
0 stars 4 forks source link

Bug in grid-rename script #18

Closed pvollenweider closed 4 years ago

pvollenweider commented 4 years ago

It seems that there is a bug during list rename

String newListName = currentListName.replace(gridName + '-', '').replace(gridName, '');

For instance here is the result of the output

 - Rename [grid1-main] to [1-main] /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/grid1-main
 - Check if list [1-main] exists and if it's empty for path /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/1-main
 - Rename /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/grid1-main to /sites/www/home/landing-pages/agile-content-management/pagecontent/agile-content-management/grid/1-main

Need to check if it's old ghost content, and if yes, then we should report it. Here is an example:

rename

pvollenweider commented 4 years ago

Another script will be done to clean up such ghost lists.