Commit 7a36640d authored by Ryan Herbert's avatar Ryan Herbert

database.js fix upload forms

Recent changes to the flow of the client, namely the removal of several
calls to model.initClones, seem to have either caused, or brought to
light another application flow issue.
Where, when the server was returning an indication to the application
that it should redirect the user to a new view, the call to the new view
was called, but the execution of database.display_result(result) was
continued, therefore attempting to identify further formats of potential
server responses. Given that in such a context, there may be no samples
initialised in the model, the application was crashing, therefore not
cotinuing it's execution of the upload form controller initialisation.

This was causing the uploads to never occur.
See #2849
parent 8ff8af5a
Pipeline #11088 passed with stages
in 5 minutes and 12 seconds
......@@ -393,6 +393,7 @@ Database.prototype = {
} else {
this.call(res.redirect, res.args)
}
return res;
}
//the json result look like a .vidjil file so we load it
......@@ -403,7 +404,6 @@ Database.prototype = {
this.last_file = args
this.close()
this.m.db_key = args
return;
}
//the json result look like a .analysis file so we load it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment