MessagePreview.php
authorEdward <edward@roojs.com>
Fri, 21 Feb 2014 11:12:05 +0000 (19:12 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Feb 2014 11:12:05 +0000 (19:12 +0800)
MessagePreview.php

index 8ab7932..cbe9c5e 100644 (file)
@@ -40,18 +40,12 @@ class Pman_Core_MessagePreview extends Pman
             $this->jerr('Missing Options');
         }
         
-        $mid = $_REQUEST['_id'];
-        
-        $mlq = DB_DataObject::factory($_REQUEST['_table']);
-        
-        $mlq->get($_REQUEST['_id']);
-        
         $content = array(
             'template' => $mlq->name,
             'person' => $this->authUser
         );
         
-        $sent = DB_DataObject::factory('crm_mailing_list_message')->send($content);
+        $sent = DB_DataObject::factory($_REQUEST['_table'])->send($content);
         
         if(!is_object($sent)){
             $this->jok('SUCCESS');