mirror of https://gitee.com/bigwinds/arangodb
fixed ui bug when saving invalid document type (#6079)
This commit is contained in:
parent
7518d0267d
commit
59d97c4649
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue