moshaorui 1 mesiac pred
rodič
commit
fcce449f61

+ 1 - 1
app/Distributor/Repositories/DistProduct.php

@@ -46,7 +46,7 @@ class DistProduct extends EloquentRepository
      */
      */
     public static function selectOptionsNew($limit=30)
     public static function selectOptionsNew($limit=30)
     {
     {
-        return Model::where('dist_id', getDistributorId())->where('enabled', 1)->orderBy('created_at', 'desc')->limit($limit)->pluck('title', 'id');
+        return Model::where('dist_id', getDistributorId())->where('enabled', 1)->where('status', 2)->orderBy('created_at', 'desc')->limit($limit)->pluck('title', 'id');
     }
     }