MessagePreview.php
authorEdward <edward@roojs.com>
Thu, 20 Feb 2014 05:34:28 +0000 (13:34 +0800)
committerEdward <edward@roojs.com>
Thu, 20 Feb 2014 05:34:28 +0000 (13:34 +0800)
MessagePreview.php

index 0b91e4f..2212e12 100644 (file)
@@ -20,12 +20,12 @@ class Pman_Core_MessagePreview extends Pman
     
     function get()
     {
-        if(empty($_REQUEST['_id']) || empty($_REQUEST['_module'])){
+        if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
             $this->jerr('missing options!');
         }
         
         
-        $mlq = DB_DataObject::factory('crm_mailing_list_message');
+        $mlq = DB_DataObject::factory($_REQUEST['_table']);
         
         $mlq->get($_REQUEST['_id']);