From 32fa839e2c478da3ee9f90064f6117491ac4c011 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 30 Apr 2019 11:53:47 +0000 Subject: [PATCH] Display the legacy job order details when Details is clicked. #207 --- src/Controller/SearchController.php | 1 - src/Entity/LegacyJobOrder.php | 8 ++++---- templates/search/form.html.twig | 2 +- templates/search/legacyjo_details.html.twig | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Controller/SearchController.php b/src/Controller/SearchController.php index 9706e914..3afbe85c 100644 --- a/src/Controller/SearchController.php +++ b/src/Controller/SearchController.php @@ -60,7 +60,6 @@ class SearchController extends BaseController $params = $this->initParameters('general.search'); $params['data'] = $legacy_jo; - $params['search_term'] = $search_term; $params['mode'] = "details"; // response diff --git a/src/Entity/LegacyJobOrder.php b/src/Entity/LegacyJobOrder.php index fde4d7ff..17485fc7 100644 --- a/src/Entity/LegacyJobOrder.php +++ b/src/Entity/LegacyJobOrder.php @@ -642,15 +642,15 @@ class LegacyJobOrder return $this->dispatch_date; } - public function setDispatchBy($dispatch_by) + public function setDispatchedBy($dispatched_by) { - $this->dispatch_by = $dispatch_by; + $this->dispatched_by = $dispatched_by; return $this; } - public function getDispatchBy() + public function getDispatchedBy() { - return $this->dispatch_by; + return $this->dispatched_by; } public function setAddress($address) diff --git a/templates/search/form.html.twig b/templates/search/form.html.twig index fc830136..892ca1ed 100644 --- a/templates/search/form.html.twig +++ b/templates/search/form.html.twig @@ -96,7 +96,7 @@ {{ result.getCustLastName|default('') }} {{ result.getCustFirstName|default('') }} {{ result.getPlateNumber|default('') }} - Details + Details {% endfor %} diff --git a/templates/search/legacyjo_details.html.twig b/templates/search/legacyjo_details.html.twig index 9177e9c9..23d11f55 100644 --- a/templates/search/legacyjo_details.html.twig +++ b/templates/search/legacyjo_details.html.twig @@ -80,7 +80,7 @@
- +
@@ -178,7 +178,7 @@
- +