When upgrading from 6.x to 7.x, webform_update_6314() fails with "Call to undefined function webform_date_string()". At the beginning of the update, webform_component_include('date') is called, which in turn calls webform_components(), which in turn uses module_implements() to get a list of components, which fails because webform is disabled. The webform_component_include() calls should be changed to module_load_include() as should the similar call for time.inc.
The attached patch does this, but it also has to leave in the drupal_load() of webform.module because time.inc does a webform_component_include('date') which fails if you don't load webform.module first. Alternatively you could change that to a module_load_include() as well theoretically, not sure how you feel about that.
Comment | File | Size | Author |
---|---|---|---|
#1 | 842000.patch | 911 bytes | gdd |
Comments
Comment #1
gddComment #2
quicksketchThanks, committed to the DRUPAL-6--3 branch. The Drupal 7 branch doesn't have any updates in it yet.