Merge pull request #3092 from urbanrotnik/ur-sci-5406-error-at-saving-project

Fix error message for name in EditProject modal [SCI-5406]
This commit is contained in:
Urban Rotnik 2021-01-18 16:38:06 +01:00 committed by GitHub
commit dbdfe4177d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,8 +353,11 @@
refreshCurrentView();
}).on('ajax:error', function(ev, data) {
HelperModule.flashAlertMsg(data.responseJSON.message, 'danger');
$(this).renderFormErrors('project', data.responseJSON.errors);
$(this).renderFormErrors('project_folder', data.responseJSON.errors);
if ($(this).hasClass('edit_project')) {
$(this).renderFormErrors('project', data.responseJSON.errors);
} else {
$(this).renderFormErrors('project_folder', data.responseJSON.errors);
}
});
});
}