[Jaws-commits] r12388 - branches/0.8/html/gadgets/Faq

afz at jaws-project.com afz at jaws-project.com
Tue Jan 10 19:54:38 UTC 2012


Author: afz
Date: 2012-01-10 19:54:37 +0000 (Tue, 10 Jan 2012)
New Revision: 12388

Modified:
   branches/0.8/html/gadgets/Faq/AdminHTML.php
Log:
fixed supporting html tags in Faq answer

Modified: branches/0.8/html/gadgets/Faq/AdminHTML.php
===================================================================
--- branches/0.8/html/gadgets/Faq/AdminHTML.php	2012-01-09 11:32:42 UTC (rev 12387)
+++ branches/0.8/html/gadgets/Faq/AdminHTML.php	2012-01-10 19:54:37 UTC (rev 12388)
@@ -356,7 +356,8 @@
         $model = $GLOBALS['app']->LoadGadget('Faq', 'AdminModel');
 
         $request =& Jaws_Request::getInstance();
-        $post    = $request->get(array('question', 'fast_url', 'answer', 'category', 'status'), 'post');
+        $post    = $request->get(array('question', 'fast_url', 'category', 'status'), 'post');
+        $post['answer'] = $request->get('answer', 'post', false);
 
         $model->AddQuestion($post['question'], $post['fast_url'], $post['answer'],
                             $post['category'], ($post['status'] == 'yes'));
@@ -376,7 +377,8 @@
         $model = $GLOBALS['app']->LoadGadget('Faq', 'AdminModel');
 
         $request =& Jaws_Request::getInstance();
-        $post    = $request->get(array('id', 'question', 'fast_url', 'answer', 'category', 'status'), 'post');
+        $post    = $request->get(array('id', 'question', 'fast_url', 'category', 'status'), 'post');
+        $post['answer'] = $request->get('answer', 'post', false);
 
         $model->UpdateQuestion($post['id'], $post['question'], $post['fast_url'],
                                $post['answer'], $post['category'], ($post['status'] == 'yes'));



More information about the Jaws-commits mailing list