aboutsummaryrefslogtreecommitdiff
path: root/include/discounts-overview.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 21:06:48 +0200
committerCamil Staps2016-07-27 21:06:48 +0200
commit390251ac43ca889a318369342b4663ef928349d8 (patch)
treeb2b0a68dd6fccf6fa52d2c1fc95bdd70811a60b3 /include/discounts-overview.php
parentDiscount: use Model (diff)
Contact: use Model
Diffstat (limited to 'include/discounts-overview.php')
-rw-r--r--include/discounts-overview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/discounts-overview.php b/include/discounts-overview.php
index 0b0534d..5253fd2 100644
--- a/include/discounts-overview.php
+++ b/include/discounts-overview.php
@@ -45,7 +45,7 @@ require_once('./login.php');
<td class='col-min-width'>{$discount->id}</td>
<td class='col-min-width'>
<a href='".Constants::url_internal."/offers?id={$discount->getOffer()->getId()}'>#{$discount->getOffer()->getId()}</a> to
- <a href='".Constants::url_internal."/contacts?id={$discount->getOffer()->getContact()->getId()}'>{$discount->getOffer()->getContact()->getName()}</a>
+ <a href='".Constants::url_internal."/contacts?id={$discount->getOffer()->getContact()->id}'>{$discount->getOffer()->getContact()->name}</a>
(<a href='".Constants::url_internal."/clients?id={$discount->getOffer()->getContact()->getClient()->id}'>{$discount->getOffer()->getContact()->getClient()->name}</a>)
<td class='col-max-width'>
<b><a href='#' class='editable' id='editable-discount-{$discount->id}-title' data-type='text' data-pk='{$discount->id}' data-url='".Constants::url_external."discounts/edit'>{$discount->title}</a></b><br/>
@@ -83,7 +83,7 @@ require_once('./login.php');
<select name="offerId" class="form-control">
<?php
foreach (BusinessAdmin::getOffers($_pdo) as $offer) {
- echo "<option value='{$offer->getId()}'>#{$offer->getId()} to {$offer->getContact()->getName()} ({$offer->getContact()->getClient()->name})</option>";
+ echo "<option value='{$offer->getId()}'>#{$offer->getId()} to {$offer->getContact()->name} ({$offer->getContact()->getClient()->name})</option>";
}
?>
</select>