aboutsummaryrefslogtreecommitdiff
path: root/include/assignments-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/assignments-overview.php
parentDiscount: use Model (diff)
Contact: use Model
Diffstat (limited to 'include/assignments-overview.php')
-rw-r--r--include/assignments-overview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/assignments-overview.php b/include/assignments-overview.php
index 9fa226f..e10323b 100644
--- a/include/assignments-overview.php
+++ b/include/assignments-overview.php
@@ -47,7 +47,7 @@ require_once('./login.php');
<td class='col-min-width'>{$assignment->id}</td>
<td class='col-min-width'>
<a href='".Constants::url_internal."/offers?id={$assignment->getOffer()->getId()}'>#{$assignment->getOffer()->getId()}</a> to
- <a href='".Constants::url_internal."/contacts?id={$assignment->getOffer()->getContact()->getId()}'>{$assignment->getOffer()->getContact()->getName()}</a>
+ <a href='".Constants::url_internal."/contacts?id={$assignment->getOffer()->getContact()->id}'>{$assignment->getOffer()->getContact()->name}</a>
(<a href='".Constants::url_internal."/clients?id={$assignment->getOffer()->getContact()->getClient()->id}'>{$assignment->getOffer()->getContact()->getClient()->name}</a>)
<td class='col-max-width'>
<b><a href='#' class='editable' id='editable-assignment-{$assignment->id}-title' data-type='text' data-pk='{$assignment->id}' data-url='".Constants::url_external."assignments/edit'>{$assignment->title}</a></b><br/>
@@ -86,7 +86,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>