$doc.removeObject causes changes to other objects to be discarded
-----------------------------------------------------------------

                 Key: XWIKI-1962
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1962
             Project: XWiki Platform
          Issue Type: Bug
          Components: APIs, Core
    Affects Versions: 1.2 RC1
            Reporter: Sergiu Dumitriu


If in a #foreach, $doc.removeObject is called on an object, then changing 
properties for the next objects will cause these changes to be lost when 
calling $doc.save()

This caused a bug in the new Rights Management UI, when doing the following 
sequence of actions:
1. On a user without any rights set, grant two rights (for example view and 
edit)
2. Deny the two rights
3. Refresh: Only one of the two rights is denied, the other one is not set at 
all.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to