DataObjects/Core_enum.php
authorEdward <edward@roojs.com>
Tue, 14 Jan 2014 05:41:59 +0000 (13:41 +0800)
committerEdward <edward@roojs.com>
Tue, 14 Jan 2014 05:41:59 +0000 (13:41 +0800)
DataObjects/Core_enum.php

index 9fdc66d..2e3a27c 100644 (file)
@@ -111,7 +111,7 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
     function onUpdate($old, $req)
     {
         $x = $this->factory($this->tableName());
-        $x->query("SELECT core_enum_seqmax_update('". $this->escape($this->etype) ."')");
+        $x->query("SELECT core_enum_seqmax_update('". $this->escape($this->etype) ."')"); // no idea why need to do this!!??
         if ($old->etype != $this->etype) {
             $x->query("SELECT core_enum_seqmax_update('". $this->escape($old->etype) ."')");
         }