# 少なくとも1つのタグを選択する必要があります - 1つ作成されたにもかかわらず

**URL:** https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612
**Category:** Bug
**Created:** [2021 年 8 月 7 日午後 6:48 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612 "2021-08-07T18:48:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [2021 年 8 月 7 日午後 6:48 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/1 "2021-08-07T18:48:02Z")

</div>

ユーザーは、カテゴリに最低1つのタグが設定されている場合、新しいタグを作成して新しいトピックを投稿することができません。エラーメッセージ「少なくとも1つのタグを選択してください」が表示されます。

_これはおそらく回帰バグだと推測します。以前は、同じ最小要件で新しいタグを作成してトピックを投稿できたはずです…_

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2021 年 8 月 13 日午後 9:53 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/8 "2021-08-13T21:53:13Z")

</div>

> [@AstonJ](#):
>
> ユーザーは、新しいタグを作成して新しいトピックを投稿できません（カテゴリに少なくとも 1 つのタグが設定されている場合）。エラーメッセージとして「少なくとも 1 つのタグを選択してください」と表示されます。

これは明らかにバグのようです。バグ報告を読みやすくするため、これまでの返信を削除します。もしこれがバグでないとしても、少なくとも UX の問題です。

私は、トピックごとに少なくとも 1 つのタグを必須とするカテゴリでテストを行いました：

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/9/99d2d45ccb043b3b77b71e521b5212bacda7f7d6.png)

私のサイトでは、「タグを作成するための最低信頼レベル」の設定は「1:基本ユーザー」に設定されています。tl1 ユーザーと tl3 ユーザーの両方でテストしましたが、これらのユーザーはサイト上で新しいタグを作成することが可能です。

カテゴリ内で新しい投稿を作成する際、ユーザーは新しいタグの作成を試みます：

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/7/c7d80ea4a04ab7f99fcc980b047696bba4446db9.png)

「トピックを作成」ボタンをクリックすると、「少なくとも 1 つのタグを選択してください」というエラーモーダルが表示されます。その後、ユーザーが `foo-ba-rbaz` というタグを維持しつつ、タグリストから既存のタグも選択すると、トピックを作成できるようになります：

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/a/7a77cc7e3d1e534f03644d839e1fc3500298bf17.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/1/d1a184a76af01c7f5c339ecfd158ad13b363440e.png)

もちろん、ユーザーは既存のタグを 1 つ以上選択するだけでトピックを作成することも可能です。

現在の動作は、カテゴリ設定の説明と一致していないように思えます。その設定は、カテゴリのトピックに必要な最小タグ数を指定するだけのものです。サイト上で新しいタグを作成する権限を持つユーザーに対して、すでに存在するタグをトピックに追加することを必須とするのは奇妙です。既存のタグの追加を必須とする場合は、カテゴリ編集ページのタグセクションにある「タググループ」設定で処理する方が適切です。

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [2021 年 10 月 19 日午後 11:10 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/9 "2021-10-19T23:10:06Z")

</div>

Simonさん、この問題の特定はできましたか？

近々、やはり「タグを最低1つ必須」とする別のDiscourseフォーラムを立ち上げる予定です。もしこの問題が解消されているなら、とても助かります 😊

---

<div class="post-metadata">

### Author: ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)
#### Post date: [2021 年 10 月 19 日午後 11:48 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/10 "2021-10-19T23:48:40Z")

</div>

同意します。

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2021 年 10 月 22 日午後 5:04 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/11 "2021-10-22T17:04:34Z")

</div>

再度テストしましたが、前の返信で説明した問題は解決していません。これはバグのようです。カテゴリに最小タグ数が必要で、ユーザーにタグ作成権限がある場合、ユーザーはカテゴリのタグ要件を満たすためにタグを作成できるはずです。現状では、その要件を満たすために既存のタグを選択する必要があります。

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2021 年 10 月 22 日午後 7:21 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/13 "2021-10-22T19:21:47Z")

</div>

来週これを掘り起こします。

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [2021 年 10 月 27 日午後 3:45 UTC](https://meta.discourse.org/t/you-must-select-at-least-1-tag-even-though-one-was-created/199612/18 "2021-10-27T15:45:08Z")

</div>

> <https://github.com/discourse/discourse/pull/14744>
>
> Previously, users who have enough trust level are unable to create topics with n…ew tags if the selected category required a minimum number of tags.

これで問題が解決するはずです。
