diff --git a/include/class.faq.php b/include/class.faq.php
index 1a2ec4c4bbf1470c67394f88fcdce492a6e7975a..0395b4968671f9a487167443d66ef242d7f9da04 100644
--- a/include/class.faq.php
+++ b/include/class.faq.php
@@ -184,9 +184,7 @@ class FAQ {
 
         // Inline images (attached to the draft)
         $this->attachments->deleteInlines();
-        if (isset($vars['draft_id']) && $vars['draft_id'])
-            if ($draft = Draft::lookup($vars['draft_id']))
-                $this->attachments->upload($draft->getAttachmentIds(), true);
+        $this->attachments->upload(Draft::getAttachmentIds($vars['answer']));
 
         $this->reload();
 
diff --git a/include/class.user.php b/include/class.user.php
index 19f83efafb2f825109053e971ba0ea998eb22f19..426ac8eacc4a0eeef6a57194fc952eac4a291c01 100644
--- a/include/class.user.php
+++ b/include/class.user.php
@@ -714,6 +714,13 @@ class PersonsName {
 
         $r = explode(' ', $name);
         $size = count($r);
+        
+        //check if name is bad format (ex: J.Everybody), and fix them
+        if($size==1 && mb_strpos($r[0], '.') !== false) 
+        {
+            $r = explode('.', $name);
+            $size = count($r);
+        }
 
         //check first for period, assume salutation if so
         if (mb_strpos($r[0], '.') === false)
diff --git a/js/osticket.js b/js/osticket.js
index f96c0595904966804fdb3f48d64b8da55349c718..133c225c7d4e328c72dc4401d268affe7fa561de 100644
--- a/js/osticket.js
+++ b/js/osticket.js
@@ -220,3 +220,16 @@ function __(s) {
 }
 
 $.clientPortal = true;
+
+$(document).on('submit', 'form', function() {
+    // Reformat dates
+    $('.dp', $(this)).each(function(i, e) {
+        var $e = $(e),
+            d = $e.datepicker('getDate');
+        if (!d) return;
+        var day = ('0'+d.getDate()).substr(-2),
+            month = ('0'+(d.getMonth()+1)).substr(-2),
+            year = d.getFullYear();
+        $e.val(year+'-'+month+'-'+day);
+    });
+});
diff --git a/scp/pages.php b/scp/pages.php
index dde430996c6799ff11e70decef5d76732c9f631a..2f7bc6baf19f0663bf2ec3eb04c47a8ac8ad49ca 100644
--- a/scp/pages.php
+++ b/scp/pages.php
@@ -27,11 +27,9 @@ if($_POST) {
                 $_REQUEST['a'] = null;
                 $msg=sprintf(__('Successfully added %s'), Format::htmlchars($_POST['name']));
                 // Attach inline attachments from the editor
-                if (isset($_POST['draft_id'])
-                        && ($draft = Draft::lookup($_POST['draft_id']))
-                        && ($page = Page::lookup($pageId)))
+                if ($page = Page::lookup($pageId))
                     $page->attachments->upload(
-                        $draft->getAttachmentIds($_POST['response']), true);
+                        Draft::getAttachmentIds($_POST['body']), true);
                 Draft::deleteForNamespace('page');
             } elseif(!$errors['err'])
                 $errors['err'] = sprintf(__('Unable to add %s. Correct error(s) below and try again.'),
@@ -46,12 +44,10 @@ if($_POST) {
                     __('this site page'));
                 $_REQUEST['a']=null; //Go back to view
                 // Attach inline attachments from the editor
-                if (isset($_POST['draft_id'])
-                        && ($draft = Draft::lookup($_POST['draft_id']))) {
-                    $page->attachments->deleteInlines();
-                    $page->attachments->upload(
-                        $draft->getAttachmentIds($_POST['response']),
-                        true);
+                $page->attachments->deleteInlines();
+                $page->attachments->upload(
+                    Draft::getAttachmentIds($_POST['body']),
+                    true);
                 }
                 Draft::deleteForNamespace('page.'.$page->getId());
             } elseif(!$errors['err'])