diff options
| author | ivan <ivan> | 2004-03-11 02:05:38 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2004-03-11 02:05:38 +0000 |
| commit | eb9668a6f3181ee02cb335272c5ee4616e61fd09 (patch) | |
| tree | f5a22d9141723fd9e2fdb40430e4a38743b72604 /rt/html/Ticket/Elements/Tabs | |
| parent | 25953817e61fd252c18241699c0b6cdc3fa54121 (diff) | |
| parent | 289340780927b5bac2c7604d7317c3063c6dd8cc (diff) | |
This commit was generated by cvs2svn to compensate for changes in r3241,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/html/Ticket/Elements/Tabs')
| -rw-r--r-- | rt/html/Ticket/Elements/Tabs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/rt/html/Ticket/Elements/Tabs b/rt/html/Ticket/Elements/Tabs index 81c92e8c2..cba45df91 100644 --- a/rt/html/Ticket/Elements/Tabs +++ b/rt/html/Ticket/Elements/Tabs @@ -45,11 +45,17 @@ my $id = $Ticket->id(); if ( defined $session{'tickets'} ) { + # we have to update session data if we get new ItemMap + my $updatesession = 1 unless($session{'tickets'}->{'item_map'}); -my $item_map = $session{'tickets'}->ItemMap; + my $item_map = $session{'tickets'}->ItemMap; - # Don't $current_toptab = display prev links if we're on the first ticket + if ($updatesession) { + $session{'i'}++; + $session{'tickets'}->PrepForSerialization(); + } + # Don't $current_toptab = display prev links if we're on the first ticket if ($item_map->{$Ticket->Id}->{prev}) { $searchtabs->{'_a'} = { class => "nav", |
