[Jaws-commits] r12457 - trunk/jaws/html/gadgets/Contact

afz at jaws-project.com afz at jaws-project.com
Fri Jan 20 22:02:35 UTC 2012


Author: afz
Date: 2012-01-20 22:02:34 +0000 (Fri, 20 Jan 2012)
New Revision: 12457

Modified:
   trunk/jaws/html/gadgets/Contact/Model.php
Log:
[Contact]: fill user field

Modified: trunk/jaws/html/gadgets/Contact/Model.php
===================================================================
--- trunk/jaws/html/gadgets/Contact/Model.php	2012-01-20 22:02:10 UTC (rev 12456)
+++ trunk/jaws/html/gadgets/Contact/Model.php	2012-01-20 22:02:34 UTC (rev 12457)
@@ -127,14 +127,15 @@
     {
         $sql = "
             INSERT INTO [[contacts]]
-                ([name], [email], [company], [url], [tel], [fax], [mobile], [address], [recipient],
-                [subject], [msg_txt], [reply], [reply_sent], [createtime], [updatetime])
+                ([user], [name], [email], [company], [url], [tel], [fax], [mobile], [address], [recipient],
+                 [subject], [msg_txt], [reply], [reply_sent], [createtime], [updatetime])
             VALUES
-                ({name}, {email}, {company}, {url}, {tel}, {fax}, {mobile}, {address}, {rcipient}, {subject}, {message},
-                {reply}, {reply_sent}, {now}, {now})";
+                ({user}, {name}, {email}, {company}, {url}, {tel}, {fax}, {mobile}, {address}, {rcipient},
+                 {subject}, {message}, {reply}, {reply_sent}, {now}, {now})";
 
         $xss = $GLOBALS['app']->loadClass('XSS', 'Jaws_XSS');
         $params = array();
+        $params['user']       = $GLOBALS['app']->Session->GetAttribute('user');
         $params['name']       = $xss->parse($name);
         $params['email']      = $xss->parse($email);
         $params['company']    = $xss->parse($company);



More information about the Jaws-commits mailing list