#5941 - Restore Comcode block categories
| Identifier | #5941 |
|---|---|
| Issue type | Minor issue (breaks specific functionality) |
| Title | Restore Comcode block categories |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Version | 11 beta4 |
| Addon | core |
| Description | In v11, the majority of Comcode blocks live under the heading Main blocks; miscellaneous. When scrolling through the options, v10 headings made it much easier to locate the block you were seeking. |
| Steps to reproduce | |
| Additional information | The blocks aren't even listed alphabetically. |
| Funded? | No |
| Commits |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
block_helper_script was trying to use an optimised way of detecting to which addons each block belongs. But this didn't work for 80% of the blocks.
This hotfix fixes the following issues:
- Use actual hook object method get_file_list instead of trying to parse the code and cms_eval it (but unset them after we're done to save on memory)
- Wrong character length was used for sources_custom/blocks/ (should have been 22, not 21, so custom blocks were not getting categorised)
- Don't exclude blocks with the name 'block' in them; no idea why we were excluding these and dumping them into main blocks misc, but it caused the forum blocks to get put there when really forum blocks should be under their own "Forum blocks" section.