BUG-14726 Error al conectar ProcessMaker con un... IMPROVEMENT

- even filtered by type "SUPER".
    - add validation in intall also a check for use the current user.
    - add validation in new workspace.
This commit is contained in:
Marco Antonio Nina
2014-05-07 14:53:05 -04:00
parent d9fe0e834f
commit cd2bf9ffdb
2 changed files with 9 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ class newSiteProxy extends HttpProxyController
} else {
//the site does not available
$this->error = true;
$this->message = $result['result']['database']['ao']['ao_db_wf']['message'];
$this->message .= ', ' . $result['result']['database']['ao']['ao_db_rb']['message'];
$this->message .= ', ' . $result['result']['database']['ao']['ao_db_rp']['message'];
}
} else {
$this->error = true;

View File

@@ -171,7 +171,12 @@ Ext.onReady(function(){
Ext.Msg.alert(_('ID_FAILURE'), _('ID_SERVER_REPORTED') + ':' + a.response.status+' '+a.response.statusText);
}
if (a.failureType === Ext.form.Action.SERVER_INVALID){
Ext.Msg.alert(_('ID_WARNING'), _('NEW_SITE_NOT_AVAILABLE'));
var text = JSON.parse(a.response.responseText);
if (typeof text.message) {
Ext.Msg.alert(_('ID_ERROR'), _('ID_MYSQL_ERROR', text.message));
} else {
Ext.Msg.alert(_('ID_WARNING'), _('NEW_SITE_NOT_AVAILABLE'));
}
}
}
});