مرحبًا، لقد فحصت أحدث إصدارين المستقر 1.9.3+2 و test-passed ولاحظت أنه لا يمكن منح شارة مخصصة للمستخدم إذا كان حقل السبب غير فارغ.
خطوات إعادة إنتاج المشكلة:
إنشاء شارة جديدة بسيطة باستخدام أيقونة Font-Awesome، بدون SQL
الانتقال إلى admin/users، والبحث عن المستخدم المطلوب
النقر على Edit badges
اختيار الشارة التي تم إنشاؤها
كتابة سبب (مهم!) https://www.cuba-platform.com/discuss/t/redirecting-http-to-https/3977/4
النقر على Grant
ستظهر لك رسالة خطأ، راجع التفاصيل أدناه في الصورة.
إذا كان حقل السبب فارغًا، فلا توجد أي أخطاء.
منتداي موجود في مجلد فرعي، وربما يكون هذا هو سبب الفشل:
إعجابَين (2)
sam
(Sam Saffron)
7 مارس 2018، 1:50ص
2
This looks incredibly likely to be the reason, unable to repro on non-subfolder.
4 إعجابات
saurabhp
(Saurabh Patel)
31 ديسمبر 2018، 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)
11 يناير 2019، 7:00ص
4
This has been merged. Thank you @saurabhp !
4 إعجابات
tgxworld
(Alan Tan)
تم إغلاقه في
14 يناير 2019، 10:00ص
5
This topic was automatically closed after 3 days. New replies are no longer allowed.