Fix: onChange + фильтрация групп

 this.options[value] вместо select.options[value]
 Проверка data перед addTag
 Исправлена группировка whereNull + orWhere в API

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad
2026-03-30 13:08:11 +08:00
co-authored by Qwen-Coder
parent 6a725d27de
commit 5689604004
2 changed files with 9 additions and 9 deletions
@@ -22,8 +22,8 @@ class GroupSearchController extends Controller
if ($user->organization_id) {
// Пользователь в организации - показываем общие + группы организации
$groupsQuery->where(function($q) use ($user) {
$q->whereNull('organization_id')
->orWhere('organization_id', $user->organization_id);
$q->whereNull('organization_id');
$q->orWhere('organization_id', $user->organization_id);
});
} else {
// Пользователь без организации - только общие группы