id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 2023,"Using the ""MultiPermissions"" class to set permissions on new items prevents default sharing to project",Nicklas Nordborg,everyone,"The `MultiPermissions` class is useful for setting multiple permissions to multiple items in one go and also supports preserving existing permissions. When used with new items there is a flaw. If permissions is only set for groups (and/or users) but not projects one would expect that the default project permissions are set. This is not the case. The flaw is that the implementation always call both `setItemKey()` and `setProjectKey()` methods even if there is no change. The fix is to only call the setter method if the new keys are different from the old keys.",defect,closed,major,BASE 3.9.1,core,,fixed,,