From ea2a7106f922dada734b4ea8437e37367b3012dc Mon Sep 17 00:00:00 2001 From: Peter Brenner Date: Sat, 9 Mar 2013 21:33:20 -0500 Subject: [PATCH] Issue #51 - Allow users to change votes via candidate profile --- app/Controller/CandidatesController.php | 1 - app/View/Candidates/view.ctp | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Controller/CandidatesController.php b/app/Controller/CandidatesController.php index 1c2e04e..b135c38 100644 --- a/app/Controller/CandidatesController.php +++ b/app/Controller/CandidatesController.php @@ -175,7 +175,6 @@ public function listByElection($id, $filter = 0, $sorting = 0) { endforeach; endif; - $conditions[] = array('Candidate.election_id = ' => $id); if ($filter != 0) : diff --git a/app/View/Candidates/view.ctp b/app/View/Candidates/view.ctp index 4c0e1a4..09530e5 100644 --- a/app/View/Candidates/view.ctp +++ b/app/View/Candidates/view.ctp @@ -6,13 +6,15 @@

- + - + + +