Skip to content

Commit 43a2e4c

Browse files
bkembreeBPSsunnavy
authored andcommitted
Remove id from search save args
If id is listed in the search save args then the search saves the ticket id for the ticket being viewed when the search is saved. If the search is loaded for a different ticket it shows the graph for the original ticket and not the one currently being viewed.
1 parent 82929f5 commit 43a2e4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

share/html/Search/Elements/EditSearches

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<div class="label col-4"><&|/l&>Permalink</&>:</div>
101101
<div class="col-8">
102102
<span class="form-control current-value">
103-
<a href="<% $m->request_path %>?sc=<% $saved_search->ShortenerObj->Code %>" class="permalink" data-toggle="tooltip" data-original-title="<% loc('Permalink to this saved search') %>" data-code="<% $saved_search->ShortenerObj->Code %>" data-url="<% $m->request_path %>?sc=<% $saved_search->ShortenerObj->Code %>"><% loc('View') %></a>
103+
<a href="<% $m->request_path %>?sc=<% $saved_search->ShortenerObj->Code %>" class="permalink" data-toggle="tooltip" data-original-title="<% loc('Permalink to this saved search') %>" data-code="<% $saved_search->ShortenerObj->Code %>" data-url="<% $m->request_path %>?sc=<% $saved_search->ShortenerObj->Code %><% ($saved_search->Type // '') eq 'Graph' ? "&id=$DECODED_ARGS->{id}" : '' %>"><% loc('View') %></a>
104104
</span>
105105
</div>
106106
</div>

share/html/Ticket/Graphs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
my @results;
8888

89-
my @save_arguments = qw(id Direction LeadingLink ShowLinks MaxDepth FillUsing ShowLinkDescriptions);
89+
my @save_arguments = qw(Direction LeadingLink ShowLinks MaxDepth FillUsing ShowLinkDescriptions);
9090
foreach my $level ( 0 .. 6 ) {
9191
push @save_arguments, "Level-". $level ."-Properties";
9292
}

0 commit comments

Comments
 (0)