Closed (fixed)
Project:
Ubercart Product Power Tools
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Oct 2009 at 20:34 UTC
Updated:
5 Oct 2009 at 20:35 UTC
The module is called for every form on a page, and was attempting a query on each run.
The form_alter() function will now return immediately if the form is not a node_form, and if it is a node form but not a valid product class, or power tools is disabled for the product class it will also return immediately without attempting further form alterations.
This should improve performance system wide, though in most cases the difference probably won't be obvious.
Comments
Comment #1
willvincent commented