From: leon Date: Wed, 2 Aug 2023 09:20:01 +0000 (+0800) Subject: DataObjects/Core_templatestr.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=805cae1e49e8f89e133166bb5801d7f5fdca231c;p=Pman.Core DataObjects/Core_templatestr.php --- diff --git a/DataObjects/Core_templatestr.php b/DataObjects/Core_templatestr.php index 3e2d2124..edbac396 100644 --- a/DataObjects/Core_templatestr.php +++ b/DataObjects/Core_templatestr.php @@ -149,6 +149,10 @@ class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject if(count($active)) { $t = DB_DataObject::factory($this->tableName()); + $t->query("UPDATE core_templatestr + SET active = 1 WHERE id in (" . implode(',' ,$active) . ") + "); + $t->query("UPDATE core_templatestr SET active = 1 WHERE