Closed (won't fix)
Project:
Drupal core
Version:
6.1
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2008 at 21:05 UTC
Updated:
12 Mar 2008 at 21:25 UTC
Hi,
I have noticed that when I submit a form the form is built again by fapi for validation and further processing. The pager queries of user_admin_account(), node_admin_nodes(), are executed at the time of form-build for validation etc . I think these stressfull queries are not needed here and should be avoided. Let me know if you think different in this point.
I am not sure which is the best way to avoid those. May be a hook after validation or submit can do those pager queries ..
-- Thanks
Comments
Comment #1
kamanashisroy commentedHi,
Heine just shown me that the pager query results are used as form fields. They are used as checkbox fields. As those fields are needed for validation, we need to execute the queries before validation too. Thus rebuild of form along with pager queries before validation or submit hook is justified.
-- Thanks