You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded from 1.0.4 to the 1.2.0 and tested this, then updated to devel and tested. Both have the same problem:
If I create a new protected branch and select members, no members show up in the list at the bottom of the page.
If I check the database, the principal_id column in the protected_branches_members table is NULL for all entries.
If I manually change a principal_id in the database, I can get the name to show up. Same with multiple entries in the protected_branches_members table referring to the same protected branch.
If I uncheck a user in the edit box for that protected branch, that user is deleted appropriately.
Trying to add them back does not work, it simply creates a new entry in the protected_branches_members table with NULL set for the principal_id field.
I also get a warning:
WARNING: Can't mass-assign protected attributes for ProtectedBranchesMember: principal_id, inherited_by
That led me to adding
attr_accessible :principal_id, :inherited_by
to REDMINE_ROOT/plugins/redmine_git_hosting/app/models/protected_branches_member.rb
I just upgraded from 1.0.4 to the 1.2.0 and tested this, then updated to devel and tested. Both have the same problem:
If I create a new protected branch and select members, no members show up in the list at the bottom of the page.
If I check the database, the principal_id column in the protected_branches_members table is NULL for all entries.
If I manually change a principal_id in the database, I can get the name to show up. Same with multiple entries in the protected_branches_members table referring to the same protected branch.
If I uncheck a user in the edit box for that protected branch, that user is deleted appropriately.
Trying to add them back does not work, it simply creates a new entry in the protected_branches_members table with NULL set for the principal_id field.
I also get a warning:
That led me to adding
to REDMINE_ROOT/plugins/redmine_git_hosting/app/models/protected_branches_member.rb
and suddenly adding users works.
The text was updated successfully, but these errors were encountered: