Index: openacs-4/packages/acs-tcl/lib/page-error.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/lib/page-error.tcl,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/acs-tcl/lib/page-error.tcl 22 May 2015 08:54:42 -0000 1.9
+++ openacs-4/packages/acs-tcl/lib/page-error.tcl 27 Jun 2015 17:32:40 -0000 1.10
@@ -35,13 +35,13 @@
--------------------------------------------------------
[_ acs-tcl.Error_Report]
--------------------------------------------------------
-[_ acs-tcl.Previus] [ad_quotehtml $return_url]
-[_ acs-tcl.Page] [ad_quotehtml $error_url]
-[_ acs-tcl.File] [ad_quotehtml $error_file]
-[_ acs-tcl.User_Name] [ad_quotehtml $user_name]
-[_ acs-tcl.lt_User_Id_of_the_user_t] [ad_quotehtml $user_id]
+[_ acs-tcl.Previus] [ns_quotehtml $return_url]
+[_ acs-tcl.Page] [ns_quotehtml $error_url]
+[_ acs-tcl.File] [ns_quotehtml $error_file]
+[_ acs-tcl.User_Name] [ns_quotehtml $user_name]
+[_ acs-tcl.lt_User_Id_of_the_user_t] [ns_quotehtml $user_id]
IP: [ad_quotehtml [ns_conn peeraddr]]
-[_ acs-tcl.Browser_of_the_user] [ad_quotehtml [ns_set get [ns_conn headers] User-Agent]]
+[_ acs-tcl.Browser_of_the_user] [ns_quotehtml [ns_set get [ns_conn headers] User-Agent]]
-----------------------------
[_ acs-tcl.Error_details]
@@ -319,7 +319,11 @@
}
}
# Display value for patches
- set bug(patches_display) "[bug_tracker::get_patch_links -bug_id $bug(bug_id) -show_patch_status $show_patch_status] \[ [_ bug-tracker.Upload_Patch] \]"
+ set href [export_vars -base patch-add { { bug_number $bug(bug_number) } { component_id $bug(component_id) } }]
+ set bug(patches_display) [subst {
+ [bug_tracker::get_patch_links -bug_id $bug(bug_id) -show_patch_status $show_patch_status]
+ \[ [_ bug-tracker.Upload_Patch] \]
+ }]
# Hide elements that should be hidden depending on the bug status
foreach element $bug(hide_fields) {