bug_tracker::get_page_variables (public)
bug_tracker::get_page_variables [ extra_spec ]
Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl
Adds the bug listing filter variables for use in the page contract. ad_page_contract { doc } [bug_tracker::get_page_variables { foo:integer { bar "" } }]
- Parameters:
- extra_spec (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set filter_vars { page:naturalnum,optional f_state:integer,optional f_fix_for_version:integer,optional f_distribution:integer,optional f_component:integer,optional orderby:token,optional project_id:naturalnum,optional {format:word "table"} } foreach { parent_id parent_heading } [bug_tracker::category_types] { lappend filter_vars "f_category_$parent_id:naturalnum,optional" } try { bug_tracker::bug::get_instance_workflow_id } on ok {workflow_id} { foreach action_id [workflow::get_actions -workflow_id $workflow_id] { lappend filter_vars "f_action_$action_id:naturalnum,optional" } } on error {errorMsg} { ns_log notice "bug_tracker::get_page_variables called on non-workflow package" } return [concat $filter_vars $extra_spec]Generic XQL file: packages/bug-tracker/tcl/bug-tracker-procs.xql
PostgreSQL XQL file: packages/bug-tracker/tcl/bug-tracker-procs-postgresql.xql
Oracle XQL file: packages/bug-tracker/tcl/bug-tracker-procs-oracle.xql