DataObjects/Core_email.php
authorEdward <edward@roojs.com>
Fri, 21 Feb 2014 11:24:28 +0000 (19:24 +0800)
committerEdward <edward@roojs.com>
Fri, 21 Feb 2014 11:24:28 +0000 (19:24 +0800)
DataObjects/Core_email.php

index 827a171..308399a 100644 (file)
@@ -262,7 +262,9 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
     {   
         $contents = (array)$obj;
         
-        $this->get('name', $contents['template']);
+        if(empty($this->id)){
+            $this->get('name', $contents['template']);
+        }
         
         if(empty($this->id)){
             return false;