RobErskine / Craft-User-Manual

📚 Help Section Plugin for Craft CMS.
MIT License
85 stars 17 forks source link

Fix for potential Craft 4 to Craft 5 migration issue #43

Closed johnfmorton closed 4 months ago

johnfmorton commented 4 months ago

During a site update from Craft 4 to Craft 5, the migration process threw an error related to adding a new column to the section table. A Craft support ticket suggested uninstalling the User Manual, completing the upgrade, and then reinstalling the plugin. That fixed the issue, but I wanted to get the migration working without needing to remove User Manual and re-adding it after the migration was finished.

This pull request attempts to fix that problem by restricting the section selection to an integer.

This update also adds a GUI for the enableSidebar setting which was previously only available when using a config/usermanual.php file.

johnfmorton commented 4 months ago

Will submit a new pull request restoring the ability to set section by handle string in addition to section ID.