mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
8b8f8f0c35
When doing a project copy, copy as-is and accept that the state can be
faulty.
Before, it was disabling parts of the validations while keeping some
other parts, which made the experience confusing: the
SetAttributesService would be ok, but then saving the work package would
fail, and later the work package would be saved again without validation
in the `UpdateAncestorsService`.
Actually it was working previously only due to side-effects of
`UpdateAncestorsService` which does save and also due to changes
introduced in 0700299 which refactored the part that detect `save`
returned `false`, leading to believe that `save` always returned `true`.
Now the validation are done solely by the `SetAttributesService`, and
when saving the work package validations are ignored.