Fix for #829: Under maintenance project should not get back to "Draft…#25
Fix for #829: Under maintenance project should not get back to "Draft…#25niksj wants to merge 2 commits intosigmah-dev:masterfrom
Conversation
…" after maintenance ended
| // "USED" status is only allowed to shift to "UNAVAILABLE" status. | ||
| return new Pair<Boolean, String>(false, I18N.CONSTANTS.usedModelStatusChangeError()); | ||
|
|
||
| } else if (currentStatus == ProjectModelStatus.USED && !currentModel.isUnderMaintenance() && targetStatus == ProjectModelStatus.DRAFT) { |
There was a problem hiding this comment.
This test doesn't seem to match with issue description. Your line of code sends an error if a project model status which is Used and NOT under maintenance is changed to Draft. But actually, the issue appears for project model in Used and under maintenance status.
|
Hi ! |
Fixes 829: Under maintenance project should not get back to "Draft" after maintenance ended