[request-tracker-maintainers] Small patch for RT
Max Kosmach
max at tcen.ru
Tue Aug 29 06:46:47 UTC 2017
Hi, RT maintainers
Would You please review my small patch and add it to Debian RT package?
With this patch RT will show description of CF value as tooltip when value is selected.
https://github.com/bestpractical/rt/pull/228
Patch:
diff --git a/share/html/Elements/EditCustomFieldSelect b/share/html/Elements/EditCustomFieldSelect
index 764f5886ea..6d5e22ea84 100644
--- a/share/html/Elements/EditCustomFieldSelect
+++ b/share/html/Elements/EditCustomFieldSelect
@@ -179,6 +179,7 @@ $MaxValues => 1
% my @levels;
% while ( my $value = $CFVs->Next ) {
% my $name = $value->Name;
+% my $descr = $value->Description;
% my $category = $value->Category || '';
% my $level = (split /:/, $category, 2)[0] || '';
% while (@levels) {
@@ -198,6 +199,9 @@ $MaxValues => 1
% push @levels, $level;
% }
<option value="<% $name %>"
+% if ($descr) {
+ title="<% $descr %>"
+% }
% if ( grep $_ eq lc $name, @Default )
% {
% $$SelectedRef = 1;
PS. Also I have preliminary package for rt-extension-mandatoryontransition.
I can upload it to alioth but now i haven't time to support it.
--
With best wishes
Max
More information about the pkg-request-tracker-maintainers
mailing list