diff options
Diffstat (limited to 'include/discounts-overview.php')
-rw-r--r-- | include/discounts-overview.php | 4 |
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> |