Publish Shortcuts
Lets you define shortcut buttons for the section/publish index pages.
Closed#1: Incorrect section at preferences
How odd. I can’t reproduce this bug. You still having the problem?
I had this issue today again. I don’t know why, but on line 172 of extension.driver.php
multiple options are set to true
.
I hot-fixed this by adding $option[1] = false;
before this line, so the complete code looks like:
# Set selected foreach($options as &$option) { $option[1] = false; if ($option[0] == $shortcut['section_id']) $option[1] = true; }
Don’t exactly know why it was causing this bug. Perhaps it has something to do with PHP-pointers?
Should be fixed by this commit: https://github.com/makenosound/publish_shortcuts/commit/833dadf2a1c27811a4c403a99041375254f331d2
This issue is closed.
I have the following scenario:
I have a section called ‘Pages’ and a section called ‘News’.
I create 6 shortcuts with the following setup:
When I save these settings, they get properly saved in the database and everything works fine.
BUT…
When I look in my preferences, the lower 3 shortcuts also have the field ‘Pages’ instead of ‘News’. Probably something goes wrong with setting the selected-attribute for the correct option here.
The result is: If I save my preferences again, my shortcuts get saved wrong (settings all fields to ‘Pages’ because the selected-attribute is positioned wrong).