Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1746 | concept/mapping new version creation…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
snyaggarwal committed Feb 5, 2024
1 parent 6030f81 commit d68c448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/common/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,8 @@ def save_as_new_version(self, user, **kwargs): # pylint: disable=too-many-branc
if self.id:
self.remove_locales()
self.delete()
errors['non_field_errors'] = [PERSIST_CLONE_ERROR]
if not errors:
errors['non_field_errors'] = [PERSIST_CLONE_ERROR]

return errors

Expand Down
1 change: 0 additions & 1 deletion core/integration_tests/tests_concepts.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ def test_put_200(self):
self.assertEqual(
response.data,
{
'non_field_errors': ['An error occurred while saving new version.'],
'__all__': ['No changes detected. Standard checksum is same as last version.']
}
)
Expand Down

0 comments on commit d68c448

Please sign in to comment.