こんにちは、最新の安定版 1.9.3+2 と test-passed の両方を確認したところ、理由フィールドが空でない場合、カスタムバッジをユーザーに付与できないことに気づきました。
再現手順:
SQL を使用せず、Font Awesome アイコンを使った新しいシンプルなバッジを作成します
管理画面のユーザー一覧(admin/users)へ移動し、対象ユーザーを探します
「バッジの編集(Edit badges)」をクリックします
作成したバッジを選択します
理由を入力します(重要!)https://www.cuba-platform.com/discuss/t/redirecting-http-to-https/3977/4
「付与(Grant)」をクリックします
エラーが発生します。詳細は以下の画像をご覧ください。
理由フィールドが空の場合はエラーは発生しません。
私のフォーラムはサブフォルダに配置されています。これが失敗の原因かもしれません:
「いいね!」 2
sam
(Sam Saffron)
2018 年 3 月 7 日午前 1:50
2
This looks incredibly likely to be the reason, unable to repro on non-subfolder.
「いいね!」 4
saurabhp
(Saurabh Patel)
2018 年 12 月 31 日午前 8:10
3
Hi,
I was able to find the issue. I found it out after seeing that we were returning 404 in the first screenshot instead of 400. We were not taking care of relative_root_url while parsing reason of badge.
I have created PR for the same here:
master ← mrfinch:saurabh/reason-folder-fix
closed 07:00AM - 11 Jan 19 UTC
it takes care if there is a relative url root
https://meta.discourse.org/t/un… able-to-grant-custom-badge-for-non-empty-reason-field/82299
「いいね!」 7
tgxworld
(Alan Tan)
2019 年 1 月 11 日午前 7:00
4
This has been merged. Thank you @saurabhp !
「いいね!」 4
tgxworld
(Alan Tan)
クローズされました:
2019 年 1 月 14 日午前 10:00
5
This topic was automatically closed after 3 days. New replies are no longer allowed.