visuddhinanda 2 лет назад
Родитель
Сommit
93fdc79720
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      app/Http/Controllers/UserDictController.php

+ 4 - 1
app/Http/Controllers/UserDictController.php

@@ -61,7 +61,10 @@ class UserDictController extends Controller
             case 'community':
                 $table = UserDict::select($indexCol)
                                 ->where('word', $request->get("word"))
-                                ->where('source', "_USER_WBW_");;
+                                ->where(function($query) {
+                                    $query->where('source', "_USER_WBW_")
+                                            ->orWhere('source','_USER_DICT_');
+                                });
                 break;
             case 'compound':
                 $dict_id = DictApi::getSysDict('robot_compound');