-
Type: Bug Report
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.2.2-B3
-
Component/s: CMS
-
Labels:None
-
Change Log Group:Fixed
-
Change Log Message:During theme scan categories weren't created according to their SMS location resulting in duplicate categories being created.
-
Story Points:1
-
Copy Issue Key:
-
Patch Instructions:
Plan:
- change the "c:OnAfterRebuildThemes" event to unserialize values of "$files" array (all at once) before using them later - 0.3h
- create the "CategoriesEventHandler::sortByDependencies(array $files)" method, that will: - 0.5h
- accept $files associative array, that is built in "c:OnAfterRebuildThemes" event, where:
-
- key is relative path to a template in theme
- value is array, that was parsed from template meta comment
-
- for each array entry (the template file) build a sorting key like this:
-
- take array from "section" key of template info (if missing use empty array)
- append value of "name" key to that array (if missing use '_Auto: ' . $template)
- combine using a separator (e.g. "||")
-
- sort array using sort key built above (will ensure, that parent templates will be listed prior to child templates)
- return sorted "$files" array
- accept $files associative array, that is built in "c:OnAfterRebuildThemes" event, where:
- in the "c:OnAfterRebuildThemes" event call the "CategoriesEventHandler::sortByDependencies" method on the "$files" array prior to creating categories from it - 0.2h
- implemented in
-
[Diffusion] rINP16713 Fixes INP-1645 - Create categories during theme scan based on their location in…
-
D269 INP-1645 - Create categories during theme scan based on their location in SMS
- mentioned in
-
Page Loading...