Group badges not showing
-
@pitaj It's the Persona theme
However, what IS odd is below
See how the first "group" is displayed with an
<a href></a>
but the one that should immediately follow it is empty ?On checking after multiple group badge select using CTRL, saving, then reloading the form, only one is being displayed
-
@baris said in Group badges not showing:
Is this setting turned on in the ACP?
Certainly is
@baris said in Group badges not showing:
Also what is the value of groupTitle for the user having this problem?
Not sure where this is being set (database ?) but this is what I see for the ADMINISTRATORS group for example
It'll display any one of them, but only one, and not more
-
@phenomlab does it work with only admins? Does it work with Founders + a group besides admins?
-
So you select multiple groups, save your profile, then reload, and it only has one group selected?
-
Nope, but from what you posted it seems there is an issue with saving the users selection into the database. When you select 2 groups and hit save it should show
["group1", "group2"]
in the `groupTitle field.Works fine on this forum as you can see from my group badges.
You would have to add some logging to see why admin selection is not saved maybe add some logging here to check the values https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L223
-
@baris I found this earlier
https://github.com/NodeBB/NodeBB/issues/9496#issue-861621005Is this related ? Seems like my exact issue and refined for the next release ?
Thanks
-
Can you try disabling various plugins?
-
@phenomlab it does seem to be the same issue. They mention they're running a lot of plugins which is what made me think of recommending disabling them.
-
Add a console.log to where I posted here https://github.com/NodeBB/NodeBB/blob/master/src/user/profile.js#L223. See what gets saved into groupTitle field when you hit save on the edit profile page. Also log the value of
meta.config.allowMultipleBadges
-
@pitaj said in Group badges not showing:
@phenomlab it does seem to be the same issue. They mention they're running a lot of plugins which is what made me think of recommending disabling them.
I've disabled the ones that I've added and aren't part of the base build, but the issue still persists.
-
@phenomlab console.log is a function you have to pass something to it
console.log(groupTitles, data.groupTitle, meta.config.allowMultipleBadges);
Also put it one line below, so it's below the closing curly brace.