Skip to content

Commit

Permalink
fix(issue): show satisfaction for tickets on service catalog
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 10, 2020
1 parent 20ca8e0 commit 7bde576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ public function displaySimplified($options = []) {

if ($item instanceof Ticket) {
//Tickets without form associated or single ticket for an answer
$satisfaction = new TicketSatisfaction();
if ($satisfaction->getFromDB($options['id'])) {
// show survey form, if any
$satisfaction->showForm($item);
}

echo "<div class='timeline_box'>";
$rand = mt_rand();
$item->showTimelineForm($rand);
Expand Down

0 comments on commit 7bde576

Please sign in to comment.