bug_tracker::category_get_options (public)

 bug_tracker::category_get_options [ -package_id package_id ] \
    -parent_id parent_id

Defined in packages/bug-tracker/tcl/bug-tracker-procs.tcl

Switches:
-package_id (optional)
-parent_id (required)
The category type's keyword_id
Returns:
options-list for a select widget for the given category type

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl bug_tracker::category_get_options bug_tracker::category_get_options packages/acs-tcl/lib/page-error.tcl->bug_tracker::category_get_options packages/bug-tracker/www/bug-add.tcl packages/bug-tracker/ www/bug-add.tcl packages/bug-tracker/www/bug-add.tcl->bug_tracker::category_get_options packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl packages/bug-tracker/www/bug.tcl->bug_tracker::category_get_options bug_tracker::get_keywords bug_tracker::get_keywords (private) bug_tracker::category_get_options->bug_tracker::get_keywords

Testcases:
No testcase defined.
Source code:
    set options [list]
    foreach elm [get_keywords -package_id $package_id] {
        lassign $elm elm_child_id elm_child_heading elm_parent_id

        if { $elm_parent_id == $parent_id } {
            lappend options [list $elm_child_heading $elm_child_id]
        }
    }
    return $options
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: