diff options
author | Camil Staps | 2016-08-01 13:48:14 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 13:53:12 +0200 |
commit | efa2936ec538c236dcec71f419ad714524c7d2b9 (patch) | |
tree | 1d7e1903851fc4c37c72cf8ee8de006979bb8b4e /include/offers-overview.php | |
parent | Paypal not on by default in braintree (diff) |
Removed BusinessAdmin::get* methods, added Model::search and
Model::count
Diffstat (limited to 'include/offers-overview.php')
-rw-r--r-- | include/offers-overview.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/offers-overview.php b/include/offers-overview.php index 090a036..09b8cfd 100644 --- a/include/offers-overview.php +++ b/include/offers-overview.php @@ -37,7 +37,7 @@ require_once(__DIR__ . '/../login.php'); </thead> <tbody> <?php - $offers = BusinessAdmin::getOffers($_pdo); + $offers = Offer::search($_pdo); foreach ($offers as $offer) { $invoiceFile = $offer->getInvoiceFile(); @@ -122,7 +122,7 @@ require_once(__DIR__ . '/../login.php'); <label>Contact:</label> <select name="contactId" class="form-control"> <?php - foreach (BusinessAdmin::getContacts($_pdo) as $contact) { + foreach (Contact::search($_pdo) as $contact) { echo "<option value='{$contact->id}'>{$contact->name} ({$contact->getClient()->name})</option>"; } ?> |