zxhxx 3 vuotta sitten
vanhempi
commit
64083c1bfa

+ 1 - 1
application/admin/view/project/project_donation_order/edit.html

@@ -73,7 +73,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_id')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-delivery_id" data-rule="required" data-source="delivery/index" class="form-control selectpage" name="row[delivery_id]" type="text" value="{$row.delivery_id|htmlentities}">
+            <input id="c-delivery_id" data-source="delivery/index" class="form-control" name="row[delivery_id]" type="text" value="{$row.delivery_id|htmlentities}">
         </div>
     </div>
     <div class="form-group">

+ 1 - 1
application/common/model/Article.php

@@ -98,7 +98,7 @@ class Article extends Model
             $ids = get_all_categories(ArticleCategory::lst(['cid'=>$where['cid']]),$where['ifyid']);
             $xwhere['article_category_id'] =['in',$ids];
         }
-        if(isset($where['key']) && $where['key']!='') $xwhere['article_category_id']  = ['like',"%{$where['key']}%"];
+        if(isset($where['key']) && $where['key']!='') $xwhere['title|info']  = ['like',"%{$where['key']}%"];
         $list = $model->where($xwhere)->order('sort desc,id desc')->page($where['page'],$where['limit'])->select();
         $count =  $model->where($xwhere)->count();
         return compact('count','list');