Fix error message for name in EditProject modal

[SCI-5406]
This commit is contained in:
Urban Rotnik 2021-01-18 09:44:45 +01:00
parent 496c106497
commit 02592178f3

View file

@ -344,8 +344,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);
}
});
});
}