1
0
Fork 0

fixed ui bug when saving invalid document type (#6079)

This commit is contained in:
Heiko 2018-08-07 15:10:00 +02:00 committed by Jan
parent 7518d0267d
commit 59d97c4649
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,8 @@
devel
-----
* fixed issue #5648: fixed error message when saving unsupported document types
* fixed internal issue #2812: Cluster fails to create many indexes in parallel
* Added C++ implementation, load balancer support, and user restriction to Pregel API.

View File

@ -339,8 +339,12 @@
this.collection.saveEdge(this.colid, this.docid, $('#document-from').html(), $('#document-to').html(), model, callbackE);
} else {
var callback = function (error, data) {
if (error) {
arangoHelper.arangoError('Error', data.responseJSON.errorMessage);
if (error || data[0] && data[0].error) {
if (data[0] && data[0].error) {
arangoHelper.arangoError('Error', data[0].errorMessage);
} else {
arangoHelper.arangoError('Error', data.responseJSON.errorMessage);
}
} else {
this.successConfirmation();
this.disableSaveButton();