bug_tracker::get_bug_links (public)

 bug_tracker::get_bug_links -patch_id patch_id \
    -patch_number patch_number \
    -write_or_submitter_p write_or_submitter_p

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

Switches:
-patch_id (required)
-patch_number (required)
-write_or_submitter_p (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/patch.tcl packages/bug-tracker/ www/patch.tcl bug_tracker::get_bug_links bug_tracker::get_bug_links packages/bug-tracker/www/patch.tcl->bug_tracker::get_bug_links _ _ (public) bug_tracker::get_bug_links->_ bug_tracker::conn bug_tracker::conn (public) bug_tracker::get_bug_links->bug_tracker::conn bug_tracker::get_mapped_bugs bug_tracker::get_mapped_bugs (public) bug_tracker::get_bug_links->bug_tracker::get_mapped_bugs export_vars export_vars (public) bug_tracker::get_bug_links->export_vars

Testcases:
No testcase defined.
Source code:
    set bug_list [get_mapped_bugs -patch_number $patch_number]
    set bug_link_list [list]

    if { [llength $bug_list] == 0} {
        return ""
    } else {

        foreach bug_item $bug_list {

            lassign $bug_item bug_summary bug_number

            set unmap_url [export_vars -base unmap-patch-from-bug -url { patch_number bug_number } ]
            if { $write_or_submitter_p } {
                set unmap_link [subst {(<a href="[ns_quotehtml $unmap_url]">[_ bug-tracker.unmap]</a>)}]
            } else {
                set unmap_link ""
            }
            lappend bug_link_list "<a href=\"bug?bug_number=$bug_number \">$bug_summary</a> $unmap_link"
        }

        if { [llength $bug_link_list] != 0 } {
            set bugs_string [join $bug_link_list "<br>"]
        } else {
            set bugs_name [bug_tracker::conn bugs]
            set bugs_string [_ bug-tracker.No_Bugs]
        }

        return $bugs_string
    }
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: