remove code comments
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 5 May 2014 19:41:51 +0000 (19:41 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 5 May 2014 19:41:51 +0000 (19:41 +0000)
this will turn of the reset of captcha

Toolkit/Contacts/ContactUs.php

index 4905702..96e3409 100755 (executable)
@@ -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);
         }