Problem/Motivation
Due to a recent change in Ubercart Addresses, the hook hook_uc_addresses_fields() of Ubercart Addresses is invoked during the install process. With this hook additional address fields can be registered. These address fields are cached in a static variable. Extra Fields Pane doesn't get a chance to register it's fields, because Ubercart Addresses is installed before Extra Fields Pane is, thus Extra Fields Pane isn't available yet when the hook is invoked for the first time.
Proposed resolution
- Let Ubercart Addresses make use of
&drupal_staticinstead of just using the static keyword. This has just been fixed, see #1713180: Use &drupal_static() instead of static where possible. - Reset the static variable "uc_addresses_get_address_fields" upon installation in the automated tests.
Remaining tasks
- Reset the static variable "uc_addresses_get_address_fields" upon installation in the automated tests.
User interface changes
None.
API changes
None.
A fix will come shortly.
Comments
Comment #1
megachrizThe static variable "uc_addresses_get_address_fields" will now be reset during the setup phase of the automated tests.
See commit.