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):
%3 packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl bug_tracker::get_page_variables bug_tracker::get_page_variables packages/bug-tracker/www/bug.tcl->bug_tracker::get_page_variables packages/bug-tracker/www/core.tcl packages/bug-tracker/ www/core.tcl packages/bug-tracker/www/core.tcl->bug_tracker::get_page_variables packages/bug-tracker/www/index.tcl packages/bug-tracker/ www/index.tcl packages/bug-tracker/www/index.tcl->bug_tracker::get_page_variables bug_tracker::bug::get_instance_workflow_id bug_tracker::bug::get_instance_workflow_id (public) bug_tracker::get_page_variables->bug_tracker::bug::get_instance_workflow_id bug_tracker::category_types bug_tracker::category_types (public) bug_tracker::get_page_variables->bug_tracker::category_types workflow::get_actions workflow::get_actions (public) bug_tracker::get_page_variables->workflow::get_actions

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

[ hide source ] | [ make this the default ]
Show another procedure: