Skip to content

Commit

Permalink
stabilise transferred items in admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
BigAndini committed Oct 28, 2016
1 parent 6509a8e commit 15e38e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion module/Admin/src/Admin/Controller/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function sendEticketsAction() {
$bcc->setEmail($config['ERS']['info_mail']);
$emailService->addBcc($bcc);

$subject = "Your registration for ".$config['ERS']['short_name']." (order ".$order->getCode()->getValue().")";
#$subject = "Your registration for ".$config['ERS']['name_short']." (order ".$order->getCode()->getValue().")";
$subject = "[".$config['ERS']['name_short']."] E-Ticket for ".$participant->getFirstname()." ".$participant->getSurname()." (order ".$order->getCode()->getValue().")";
$emailService->setSubject($subject);

Expand Down
20 changes: 13 additions & 7 deletions module/Admin/view/partial/order-detail-item.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,19 @@
<i data-toggle="tooltip" data-placement="bottom" class="fa fa-child color-primary" title="0 € child ticket"></i>
<?php break;
case 'transferred':
$transferredPackage = $item->getTransferredItem()->getPackage();
$transferredParticipant = $transferredPackage->getParticipant();
$transferredOrder = $transferredPackage->getOrder();
?>
<a href="<?php echo $this->url('admin/order', array('action' => 'detail', 'id' => $transferredOrder->getId())); ?>">
<i data-toggle="tooltip" data-placement="bottom" class="fa fa-forward color-primary" title="transferred to <?php echo $transferredParticipant->getFirstname().' '.$transferredParticipant->getSurname(); ?>"></i>
</a>
$transferredItem = $item->getTransferredItem();
if($transferredItem):
$transferredPackage = $transferredItem->getPackage();
$transferredParticipant = $transferredPackage->getParticipant();
$transferredOrder = $transferredPackage->getOrder();
?>
<a href="<?php echo $this->url('admin/order', array('action' => 'detail', 'id' => $transferredOrder->getId())); ?>">
<i data-toggle="tooltip" data-placement="bottom" class="fa fa-forward color-primary" title="transferred to <?php echo $transferredParticipant->getFirstname().' '.$transferredParticipant->getSurname(); ?>"></i>
</a>
<?php else: ?>
<i class="fa fa-question text-info"></i>
<?php endif; ?>

<?php break;
default: ?>
<i data-toggle="tooltip" data-placement="bottom" class="fa fa-question color-primary" title="unknown"></i>
Expand Down

0 comments on commit 15e38e6

Please sign in to comment.