mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 18:16:10 +00:00
properties need to get their parent set.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6737 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2c2282422d
commit
1feaaecc37
1 file changed
+5
-2
@@ -328,8 +328,11 @@ public class User extends AbstractModelObject {
|
||||
description = req.getParameter("description");
|
||||
|
||||
List<UserProperty> props = new ArrayList<UserProperty>();
|
||||
for (Descriptor<UserProperty> d : UserProperties.LIST)
|
||||
props.add(d.newInstance(req,null));
|
||||
for (Descriptor<UserProperty> d : UserProperties.LIST) {
|
||||
UserProperty p = d.newInstance(req, null);
|
||||
p.setUser(this);
|
||||
props.add(p);
|
||||
}
|
||||
this.properties = props;
|
||||
|
||||
save();
|
||||
|
||||
Reference in new issue
Block a user