View Issue Details

IDProjectCategoryView StatusLast Update
0005941Composrcorepublic2024-11-18 17:30
ReporterAdam EdingtonAssigned ToPatrick Schmalstig 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Product Version11.beta4 
Fixed in Version 
Summary0005941: Restore Comcode block categories
DescriptionIn 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.
Additional InformationThe blocks aren't even listed alphabetically.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2024-11-18 16:56

administrator   ~0009607

Oof, yes this is a big problem. I'll work on it.

admin

2024-11-18 17:30

administrator   ~0009608

Automated response: Block wizard was not correctly categorising a lot of blocks

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.

admin

2024-11-18 17:30

administrator   ~0009609

Fixed in Git commit 1a1185481c (https://gitlab.com/composr-foundation/composr/commit/1a1185481c - link will become active once code pushed to GitLab)

hotfix-5941, 2024-11-18 5pm.tar (197,632 bytes)

admin

2024-11-18 17:30

administrator   ~0009610

A hotfix (a TAR of files to upload) has been uploaded to this issue. Only apply this hotfix if you absolutely need it and cannot wait until the next release of Composr (releases are more reliable and strictly tested). As of Composr version 11, the recommended way to apply a hotfix is by following the same steps as an upgrade (https://baseurl/upgrader.php, use the hotfix on the step “Transfer across new/updated files”). The upgrader will automatically skip files belonging to addons you do not have installed or that are newer on disk than in the hotfix. Otherwise, you can manually extract and replace these files (do not replace if your on-disk file is newer than the one in the hotfix). Always take backups of your site or at least files you are replacing before applying a hotfix. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change
2024-09-15 01:51 Adam Edington New Issue
2024-09-15 01:52 Adam Edington Description Updated
2024-09-15 01:52 Adam Edington Issue Revision Dropped: Description: 0004627
2024-09-15 01:53 Adam Edington Description Updated View Revisions
2024-09-15 01:53 Adam Edington Issue Revision Dropped: Description: 0004628
2024-09-15 01:54 Adam Edington Description Updated View Revisions
2024-09-15 01:54 Adam Edington Additional Information Updated View Revisions
2024-09-15 01:57 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-11-18 16:56 Patrick Schmalstig Note Added: 0009607
2024-11-18 16:56 Patrick Schmalstig Severity Feature-request => Minor-bug
2024-11-18 16:56 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-11-18 16:56 Patrick Schmalstig Status non-assigned => assigned