[Rt-commit] rt branch, 4.4/download-user-info, repushed
Craig Kaiser
craig at bestpractical.com
Tue Jun 5 16:07:06 EDT 2018
The branch 4.4/download-user-info was deleted and repushed:
was 63a76c670d863a5e2be03de75994a11ef1d0393f
now 560633be43706664dcda3c92dc67b2e2c321307e
1: 725dd1cde = 1: 725dd1cde Create helper for exporting TSV data
2: 196535932 = 2: 196535932 Update ticket search to use tsv helper
3: a1c91325c = 3: a1c91325c Add column to transaction column map for content
4: a8289caa4 ! 4: de94482fe Add portlet for downloading user information
@@ -58,22 +58,20 @@
+ class => 'user-related-info',
+ title => loc("User related info"),
+&>
-+
++% if ( $id ) {
+<div class="row">
+ <div class="col-md-12">
+ <a href="/Helpers/Results.tsv?Type=User&UserId=<% $id %>"><button>Download My User Info</button></a>
-+ <a href="/Helpers/Results.tsv?<% $query_tickets %>"><button>Download My Tickets</button></a>
++ <a href="/Helpers/Results.tsv?<% "Query=Requestor.id=$id" %>"><button>Download My Tickets</button></a>
+ <a href="/Helpers/Results.tsv?Type=Transaction&UserId=<% $id %>"><button>Download My Transaction Info</button></a>
+ </div>
+</div>
++% }
+</&>
-+<%init>
++<%INIT>
+my $user = RT::User->new($session{'CurrentUser'});
+$user->Load( $id );
-+
-+# Build Ticket Query
-+my $query_tickets = "Query=Requestor.id = " . $id ? $id : '0';
-+</%init>
++</%INIT>
+
+<%ARGS>
+$id => undef
5: daeb9d520 = 5: 5fb8299a4 Add user download portlet to Admin modify page
6: 690295c9e = 6: 14a3d39fd Add test for user tsv info download
7: 37a5a7615 = 7: 9ac04b56d Add test for user tickets download
8: 63a76c670 ! 8: 560633be4 Add test for user transaction download
@@ -36,5 +36,6 @@
+ is($data[9], 'Comments added', 'Transaction description correct');
}
- done_testing();
+-done_testing();
\ No newline at end of file
++done_testing();
More information about the rt-commit
mailing list