Merged in luisfernandosl/processmaker/HOR-436-C-3018 (pull request #3833)

HOR-436-C "Notice</b>: Undefined variable..." SOLVED
This commit is contained in:
David Callizaya
2016-03-15 09:31:21 -04:00
3 changed files with 6 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
use \ProcessMaker\Importer\XmlImporter;
ini_set("max_execution_time", 0);
$affectedGroups = array();
/*----------------------------------********---------------------------------*/
if (PMLicensedFeatures::getSingleton()->verifyfeature("B0oWlBLY3hHdWY0YUNpZEtFQm5CeTJhQlIwN3IxMEkwaG4=") &&

View File

@@ -30,7 +30,8 @@ class XmlImporter extends Importer
throw new \Exception(\G::LoadTranslation("ID_INVALID_FILE"));
}
$this->dom->load((is_null($filename))? $this->filename : $filename);
$loadFilename = (is_null($filename))? $this->filename : $filename;
$this->dom->loadXml(file_get_contents($loadFilename));
$this->root = $this->dom->documentElement;
// validate version

View File

@@ -1147,6 +1147,7 @@ importProcessExistGroup = function()
url : 'processes_Import_Ajax',
waitMsg : _('ID_UPLOADING_PROCESS_FILE'),
waitTitle : "&nbsp;",
timeout: 3600,
success : function(o, resp) {
var resp_ = Ext.util.JSON.decode(resp.response.responseText);
var sNewProUid = resp_.sNewProUid;
@@ -1327,6 +1328,7 @@ importProcessExistProcess = function()
url : 'processes_Import_Ajax',
waitMsg : _('ID_UPLOADING_PROCESS_FILE'),
waitTitle : "&nbsp;",
timeout: 3600,
success: function(o, resp) {
var resp_ = Ext.util.JSON.decode(resp.response.responseText);
var sNewProUid = resp_.sNewProUid;
@@ -1560,6 +1562,7 @@ importProcess = function()
url : "processes_Import_Ajax",
waitMsg : _("ID_UPLOADING_PROCESS_FILE"),
waitTitle: "&nbsp;",
timeout: 3600,
success: function(o, resp)
{
var resp_ = Ext.util.JSON.decode(resp.response.responseText);