DataObjects/Core_templatestr.php
authorAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2020 06:06:08 +0000 (14:06 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2020 06:06:08 +0000 (14:06 +0800)
DataObjects/Core_templatestr.php

index a08be89..204c85f 100644 (file)
@@ -47,6 +47,7 @@ class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject
         
         if(!empty($q['on_table']) && (empty($q['template_id']) || !is_numeric($q['template_id']))){
             $this->template_id = 0;
+             $this->whereAdd(" OR join_src_id_id.txt != ''");
         }
         if (!empty($q['_search_txt'])) {
             $str = $this->escape($q['_search_txt']);