[Rt-commit] rt branch, 4.0/autocomplete-cf-in-search-builder, updated. rt-4.0.11rc1-24-g7768ad3
? sunnavy
sunnavy at bestpractical.com
Sat Oct 5 00:37:34 EDT 2013
The branch, 4.0/autocomplete-cf-in-search-builder has been updated
via 7768ad3990db4fbd7f4f2df305f4e001492fb12c (commit)
from 4ef418698d79bdbd2e0580c5b1dabfd27ac6003e (commit)
Summary of changes:
share/html/Elements/SelectCustomFieldValue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 7768ad3990db4fbd7f4f2df305f4e001492fb12c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sat Oct 5 12:36:11 2013 +0800
search/show Description field too
like we do on cf modify pages
diff --git a/share/html/Elements/SelectCustomFieldValue b/share/html/Elements/SelectCustomFieldValue
index 854f498..27710d9 100644
--- a/share/html/Elements/SelectCustomFieldValue
+++ b/share/html/Elements/SelectCustomFieldValue
@@ -62,7 +62,10 @@
% my @options;
% my $values = $CustomField->Values;
% while (my $value = $values->Next) {
-% push @options, $value->Name;
+% push @options, {
+% value => $value->Name,
+% label => $value->Description ? $value->Name . ' (' . $value->Description . ')' : $value->Name,
+% };
% }
jQuery('#'+'CF-' + <% $CustomField->id %>).autocomplete({ source: <% JSON::to_json(\@options) |n %> });
</script>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list