PM-2313 0017153: Always dropping database when creating a new site from install/newSite.
Causa : Fue definida asi, y siempre hacia drop de bases de datos. Solució Aunque desde la interfaz siempre se verificaba la base de datos si existia sin embargo onternamente se hacia un drop de esa base de datos. Se valido esto con el cual se controla ese comportamiento.
This commit is contained in:
@@ -198,20 +198,23 @@ Ext.onReady(function(){
|
||||
function createNW(nwTitle, aoDbWf, aoDbRb, aoDbRp, nwUsername, nwPassword, nwPassword2){
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('NEW_SITE_CONFIRM_TO_CREATE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg : _('ID_SITE_CREATING')});
|
||||
var oParams = {
|
||||
action : 'create',
|
||||
NW_TITLE : nwTitle,
|
||||
AO_DB_WF : aoDbWf,
|
||||
AO_DB_RB : aoDbRb,
|
||||
AO_DB_RP : aoDbRp,
|
||||
NW_USERNAME : nwUsername,
|
||||
NW_PASSWORD : nwPassword,
|
||||
NW_PASSWORD2 : nwPassword2
|
||||
};
|
||||
if(aoDbDrop){
|
||||
oParams.AO_DB_DROP = 'On';
|
||||
}
|
||||
loadMask.show();
|
||||
Ext.Ajax.request({
|
||||
url: '../newSiteProxy/testingNW',
|
||||
params: {
|
||||
action : 'create',
|
||||
NW_TITLE : nwTitle,
|
||||
AO_DB_WF : aoDbWf,
|
||||
AO_DB_RB : aoDbRb,
|
||||
AO_DB_RP : aoDbRp,
|
||||
NW_USERNAME : nwUsername,
|
||||
NW_PASSWORD : nwPassword,
|
||||
NW_PASSWORD2 : nwPassword2,
|
||||
AO_DB_DROP : aoDbDrop
|
||||
},
|
||||
params: oParams,
|
||||
method: 'POST',
|
||||
success: function ( result, request ) {
|
||||
loadMask.hide();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<USR_USERNAME type="text" size="30" maxlength="50" required="true" validate="Any" autocomplete="0">
|
||||
<en><![CDATA[User]]></en>
|
||||
</USR_USERNAME>
|
||||
<USR_EMAIL type="text" size="30" required="true" maxlength="32" autocomplete="0">
|
||||
<USR_EMAIL type="text" size="30" required="true" maxlength="42" autocomplete="0">
|
||||
<en><![CDATA[Email]]></en>
|
||||
</USR_EMAIL>
|
||||
<URL type="hidden"/>
|
||||
|
||||
Reference in New Issue
Block a user