From 5c178975447b2b45df0fa243f0723f303e9167fc Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 5 May 2014 19:41:51 +0000 Subject: [PATCH] remove code comments this will turn of the reset of captcha --- Toolkit/Contacts/ContactUs.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 4905702..96e3409 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -1121,7 +1121,7 @@ class Toolkit_Contacts_ContactUs public function toHtml() { if ($this->validate()) { - //$this->captchaQuestion->destroy(); + $this->captchaQuestion->destroy(); $this->cleanForm(); $this->setupRenderers(); if ($this->process(array(&$this, 'processData'), $this->mergeFiles)) { @@ -1131,14 +1131,14 @@ class Toolkit_Contacts_ContactUs } $this->sent = true; } elseif ($this->isSubmitted()) { - //$this->captchaQuestion->destroy(); - //$this->captchaAnswer->setValue(''); + $this->captchaQuestion->destroy(); + $this->captchaAnswer->setValue(''); $this->setupRenderers(); $output = $this->errorMsg; $output .= $this->template->bufferedOutputObject($this->view); } else { - //$this->captchaQuestion->destroy(); - //$this->captchaAnswer->setValue(''); + $this->captchaQuestion->destroy(); + $this->captchaAnswer->setValue(''); $this->setupRenderers(); $output .= $this->template->bufferedOutputObject($this->view); } -- 2.17.1