[Rt-commit] rt branch, 4.4/ticket-search-order-by-watcher-cfs, repushed
? sunnavy
sunnavy at bestpractical.com
Wed Apr 22 18:04:19 EDT 2020
The branch 4.4/ticket-search-order-by-watcher-cfs was deleted and repushed:
was e70771a4107ec53caa38b8163383d1631a67c0ee
now 7bf68a0f3457543e38949ab853ff9de93b437b16
1: 14306b24f5 = 1: 14306b24f5 Document a fix for perl module permissions problem
2: b690768413 = 2: b690768413 Add ModifyContent callback to ShowTransactionAttachments
3: bbac78c698 = 3: bbac78c698 Support order by watcher's custom fields for ticket search
4: 9a1556ab44 = 4: 9a1556ab44 Test order by watcher's custom fields for ticket search
5: af57e603b9 ! 5: de21a48922 Support more watcher fields including user cfs in search result format
@@ -25,9 +25,12 @@
+my $role_value = sub {
+ my $role = shift;
+ my $object = shift;
-+ my $field = pop;
++
++ # $[0] is the index number of current row
++ my $field = $_[1] || '';
+
+ my ( $role_type, $attr, $cf_name );
++
+
+ if ( $role eq 'CustomRole' ) {
+ my $role_name;
@@ -64,7 +67,7 @@
+ if ( $field =~ /^CustomField\.\{(.+)\}/ ) {
+ $cf_name = $1;
+ }
-+ elsif ( $field =~ /^(?:\.(\w+))?$/ ) {
++ elsif ( $field =~ /^(\w+)$/ ) {
+ $attr = $1;
+ }
+ $role_type = $role;
@@ -74,6 +77,7 @@
+
+ my $role_group = $object->RoleGroup($role_type);
+ if ( $cf_name || $attr ) {
++ # TODO Show direct members only?
+ my $users = $role_group->UserMembersObj;
+ my @values;
+
6: ff0ae1d474 = 6: 51d5c34441 Add more watcher fields including user cfs to OrderBy/Columns in search builder
7: 4da80c2964 = 7: 5671d94aae Upgrade OrderBy "Owner" to new version "Owner.Name" in saved searchs
8: e70771a410 = 8: 7bf68a0f34 Update query builder tests as now we support more watcher fields
More information about the rt-commit
mailing list