From c6c14d3cbbb6640d0a454fdb5a84fcdf43cee5f2 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 1 Nov 2016 17:53:40 +0200 Subject: [PATCH] vacancy counters + background duplicate counters fix --- frontend/controllers/CompanyController.php | 4 ++++ frontend/views/layouts/company.php | 4 +++- frontend/views/layouts/gallery-company.php | 2 +- frontend/views/layouts/gallery.php | 2 +- frontend/views/layouts/performer.php | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/controllers/CompanyController.php b/frontend/controllers/CompanyController.php index e10336c..380c150 100755 --- a/frontend/controllers/CompanyController.php +++ b/frontend/controllers/CompanyController.php @@ -463,6 +463,10 @@ ->limit(3) ->all(); + $vacancy->updateCounters( + ['view_count' => 1] + ); + return $this->render('vacancy-view', [ 'company' => $company, 'vacancy' => $vacancy, diff --git a/frontend/views/layouts/company.php b/frontend/views/layouts/company.php index 230e393..a2ead44 100755 --- a/frontend/views/layouts/company.php +++ b/frontend/views/layouts/company.php @@ -14,7 +14,7 @@ $this->beginContent('@app/views/layouts/main.php'); ?>
-
+
+ +