Loading...
 
Skip to main content

When printing an item from a tracker, that item misses the content

Status
Closed
Subject
When printing an item from a tracker, that item misses the content
Version
14.x Regression
Category
  • Regression
Feature
Trackers
Resolution status
Fixed or Solved
Submitted by
WolfgangA
Volunteered to solve
wolfganga
Lastmod by
WolfgangA
Rating
(0)
Description

When clicking on the print-icon when viewing an tracker item, the print will only show the item main field, but no other content.

The problem has to do with the management of show/hiding the tabs. When viewing interactive, one can click the tabs and the underlying js handler sets a class="active" tag to that tab. This makes the tab visible.

When clicking the print icon, all tabs have not set a class="active" and are therefore not visible.

Its even not working here on this site. Clicking on print for this tracker item just shows the title...

Solution

Fixed in r53709 31.1.2015.

Added a param print=y|n to the smarty function block.tab.php.
Example {tab name="{tr}View{/tr}" print=y}. This will force the activation of the tab when clicking the print icon.
Maybe it is possible to get the active tab from a cookie or via jquery into a smarty variable, but i haven't seen anything like this.

This new print param might be useful somewhere else as well.

Importance
9
Easy to solve?
5
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5540
Created
Saturday 31 January, 2015 20:30:25 UTC
by WolfgangA
LastModif
Saturday 31 January, 2015 21:34:45 UTC


Show PHP error messages