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.
rooms_unit_update_7010
update function calls commerce_update_rename_permissions
function from commerce module. I am updating modules on plenty websites and came across a situation where commerce module is not enabled and rooms module is used.
Because of this database updates are not getting applied and update script ends with error Fatal error: Call to undefined function commerce_update_rename_permissions()
Can we add a check before calling that function if commerce module is enabled? Or add a dependency into the info file for commerce module.
Thoughts?
Comment | File | Size | Author |
---|---|---|---|
#3 | rooms_commerce_dependency-2831660-3.patch | 1.36 KB | vinmassaro |
Comments
Comment #2
acrollet CreditAttribution: acrollet at roomify - online and open source reservation solutions commentedSimplest thing would be to add the dependency on commerce.
Comment #3
vinmassaro CreditAttribution: vinmassaro commentedRan into this today, here is a patch that fixes the issue.