Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When querying the database, the saved path for every single menu item icon is 'sites/all/modules/contrib/menu_icons/images/default_icon.png' instead of the uploaded file.
Comments
Comment #1
acrollet CreditAttribution: acrollet commentedlooking into this one, thanks!
Comment #2
acrollet CreditAttribution: acrollet commentedI'm unable to reproduce this issue with the latest code. I've rolled a new release, please try with 7.x-3.0-beta2 and let me know if it does not resolve the issue.
Comment #3
jenlamptonI've updated to the dev version, and now it looks like the path is being saved correctly.
Unfortunately, the #default_value for path is not being populated into the form correctly - it's trying to use the default value for enabled instead.
should be
Comment #4
acrollet CreditAttribution: acrollet commentedI'm afraid I'm not seeing your meaning - the default value for use_icon_logo is correctly populated from the options stored in the menu_link table, as is the default value for the icon_path form element. Could you clarify what you mean, or perhaps mention what problem you're seeing in use?
Comment #5
jenlamptonMaybe I'm misreading things, I'll play with it some more and see if I can clarify the problem. If I can fix it I'll add a patch.
Comment #6
acrollet CreditAttribution: acrollet commented