bug_tracker::users_get_options (public)

 bug_tracker::users_get_options [ -package_id package_id ]

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

Switches:
-package_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/admin/component-ae.tcl packages/bug-tracker/ www/admin/component-ae.tcl bug_tracker::users_get_options bug_tracker::users_get_options packages/bug-tracker/www/admin/component-ae.tcl->bug_tracker::users_get_options packages/bug-tracker/www/admin/project-edit.tcl packages/bug-tracker/ www/admin/project-edit.tcl packages/bug-tracker/www/admin/project-edit.tcl->bug_tracker::users_get_options packages/bug-tracker/www/admin/project-maintainer-edit.tcl packages/bug-tracker/ www/admin/project-maintainer-edit.tcl packages/bug-tracker/www/admin/project-maintainer-edit.tcl->bug_tracker::users_get_options packages/bug-tracker/www/admin/version-ae.tcl packages/bug-tracker/ www/admin/version-ae.tcl packages/bug-tracker/www/admin/version-ae.tcl->bug_tracker::users_get_options _ _ (public) bug_tracker::users_get_options->_ ad_conn ad_conn (public) bug_tracker::users_get_options->ad_conn db_list_of_lists db_list_of_lists (public) bug_tracker::users_get_options->db_list_of_lists

Testcases:
No testcase defined.
Source code:
    if { $package_id eq "" } {
        set package_id [ad_conn package_id]
    }

    set user_id [ad_conn user_id]

    # This picks out users who are already assigned to some bug in this
    set sql {
        select first_names || ' ' || last_name || ' (' || email || ')'  as name,
               user_id
        from   cc_users
        where  user_id in (
                      select maintainer
                      from   bt_projects
                      where  project_id = :package_id

                      union

                      select maintainer
                      from   bt_versions
                      where  project_id = :package_id

                      union

                      select maintainer
                      from   bt_components
                      where  project_id = :package_id
                )
        or     user_id = :user_id
        order  by name
    }

    set users_list [db_list_of_lists users $sql]

    set users_list [concat [list [list [_ bug-tracker.Unassigned] "" ]] $users_list]
    lappend users_list [list [_ bug-tracker.Search] ":search:"]

    return $users_list
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: