diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 80d8b173b..246b30c45 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -3468,7 +3468,12 @@ class G G::LoadClass("pmFunctions"); G::LoadThirdParty('phpmailer', 'class.phpmailer'); $setup = getEmailConfiguration(); - + if ($setup['MESS_RAUTH'] == false || (is_string($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] == 'false')) { + $setup['MESS_RAUTH'] = 0; + } else { + $setup['MESS_RAUTH'] = 1; + } + if (count($setup) == 0 || !isset($setup['MESS_ENGINE']) || !isset($setup['MESS_SERVER']) || !isset($setup['MESS_ENABLED']) || !isset($setup['MESS_RAUTH']) || $setup['MESS_SERVER'] == '') { return G::LoadTranslation('ID_EMAIL_ENGINE_IS_NOT_CONFIGURED'); diff --git a/workflow/engine/classes/class.applications.php b/workflow/engine/classes/class.applications.php index a79397e1d..8a17cc8f5 100644 --- a/workflow/engine/classes/class.applications.php +++ b/workflow/engine/classes/class.applications.php @@ -149,6 +149,7 @@ class Applications $Criteria->addAlias( 'CU', 'USERS' ); $Criteria->addJoin( AppCacheViewPeer::USR_UID, 'CU.USR_UID', Criteria::LEFT_JOIN ); + $Criteria->addAsColumn( 'USR_UID', 'CU.USR_UID' ); $Criteria->addAsColumn( 'USR_FIRSTNAME', 'CU.USR_FIRSTNAME' ); $Criteria->addAsColumn( 'USR_LASTNAME', 'CU.USR_LASTNAME' ); $Criteria->addAsColumn( 'USR_USERNAME', 'CU.USR_USERNAME' ); diff --git a/workflow/engine/classes/class.case.php b/workflow/engine/classes/class.case.php index 436f5ccce..9a114126d 100755 --- a/workflow/engine/classes/class.case.php +++ b/workflow/engine/classes/class.case.php @@ -4717,6 +4717,11 @@ class Cases if ($sTo != null) { $oSpool = new spoolRun(); + if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) { + $aConfiguration['MESS_RAUTH'] = 0; + } else { + $aConfiguration['MESS_RAUTH'] = 1; + } $oSpool->setConfig(array( "MESS_ENGINE" => $aConfiguration["MESS_ENGINE"], diff --git a/workflow/engine/classes/class.dynaformEditor.php b/workflow/engine/classes/class.dynaformEditor.php index 73026da71..ec01b0181 100755 --- a/workflow/engine/classes/class.dynaformEditor.php +++ b/workflow/engine/classes/class.dynaformEditor.php @@ -169,7 +169,7 @@ class dynaformEditor extends WebResource $oHeadPublisher->addScriptCode("var TRANSLATIONS = " . G::json_encode($labesTrans) . ";"); $oHeadPublisher->setTitle(G::LoadTranslation('ID_DYNAFORM_EDITOR') . ' - ' . $Properties['DYN_TITLE']); $G_PUBLISH->AddContent('blank'); - $this->panelConf['title'] = $this->title; + $this->panelConf['title'] = ''; $G_PUBLISH->AddContent('panel-init', 'mainPanel', $this->panelConf); if ($Properties['DYN_TYPE'] == 'xmlform') { $G_PUBLISH->AddContent('xmlform', 'toolbar', 'dynaforms/fields_Toolbar', 'display:none', $Parameters, '', ''); diff --git a/workflow/engine/classes/class.spool.php b/workflow/engine/classes/class.spool.php index 6c47a4cd3..406cbba94 100755 --- a/workflow/engine/classes/class.spool.php +++ b/workflow/engine/classes/class.spool.php @@ -542,6 +542,11 @@ class spoolRun if ($aConfiguration["MESS_ENABLED"] == "1") { require_once ("classes/model/AppMessage.php"); + if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) { + $aConfiguration['MESS_RAUTH'] = 0; + } else { + $aConfiguration['MESS_RAUTH'] = 1; + } $this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"] ) ); diff --git a/workflow/engine/classes/class.system.php b/workflow/engine/classes/class.system.php index f41bc1316..6a2090085 100755 --- a/workflow/engine/classes/class.system.php +++ b/workflow/engine/classes/class.system.php @@ -931,6 +931,10 @@ class System $skinListArray = array (); $customSkins = glob( PATH_CUSTOM_SKINS . "*/config.xml" ); + if (!is_array($customSkins)) { + $customSkins = array(); + } + // getting al base skins $baseSkins = glob( G::ExpandPath( "skinEngine" ) . '*/config.xml' ); diff --git a/workflow/engine/classes/class.toolBar.php b/workflow/engine/classes/class.toolBar.php index 46336aed4..0c7bbd5af 100755 --- a/workflow/engine/classes/class.toolBar.php +++ b/workflow/engine/classes/class.toolBar.php @@ -155,6 +155,29 @@ class XmlForm_Field_toolButton extends XmlForm_Field case 'text/image': $html = $this->htmlentities( $this->label, ENT_QUOTES, 'utf-8' ) . '
style) ? ' style="' . $this->style . '"' : '') . '/>'; break; + case 'dropdown': + $html = ''; + if (isset($this->owner->values['PRO_UID'])) { + G::LoadClass('processMap'); + $criteria = processMap::getDynaformsCriteria($this->owner->values['PRO_UID']); + $dataset = DynaformPeer::doSelectRS($criteria); + if ($dataset->getRecordCount() > 0) { + $html .= '' . G::LoadTranslation('ID_EDITING_DYNAFORM'); + $html .= ': '; + } + } + return $html; + break; case 'class': $html = '
diff --git a/workflow/engine/classes/class.wsBase.php b/workflow/engine/classes/class.wsBase.php index 5356bccb5..86375f492 100755 --- a/workflow/engine/classes/class.wsBase.php +++ b/workflow/engine/classes/class.wsBase.php @@ -749,6 +749,11 @@ class wsBase } } $aSetup['MESS_PASSWORD'] = $passwd; + if ($aSetup['MESS_RAUTH'] == false || (is_string($aSetup['MESS_RAUTH']) && $aSetup['MESS_RAUTH'] == 'false')) { + $aSetup['MESS_RAUTH'] = 0; + } else { + $aSetup['MESS_RAUTH'] = 1; + } $oSpool = new spoolRun(); $oSpool->setConfig( array ('MESS_ENGINE' => $aSetup['MESS_ENGINE'],'MESS_SERVER' => $aSetup['MESS_SERVER'],'MESS_PORT' => $aSetup['MESS_PORT'],'MESS_ACCOUNT' => $aSetup['MESS_ACCOUNT'],'MESS_PASSWORD' => $aSetup['MESS_PASSWORD'],'SMTPAuth' => $aSetup['MESS_RAUTH'] diff --git a/workflow/engine/classes/class.wsTools.php b/workflow/engine/classes/class.wsTools.php index f1b5b39b5..0965d570c 100755 --- a/workflow/engine/classes/class.wsTools.php +++ b/workflow/engine/classes/class.wsTools.php @@ -315,6 +315,8 @@ class workspaceTools } elseif ($first) { CLI::logging( "Updating XML form translations with $poName\n" ); Language::import( $poFile, true, false ); + CLI::logging( "Updating database translations with $poName\n" ); + Language::import( $poFile, false, true ); } } } diff --git a/workflow/engine/classes/model/AppNotes.php b/workflow/engine/classes/model/AppNotes.php index 182e2e54a..56ca7f3d0 100755 --- a/workflow/engine/classes/model/AppNotes.php +++ b/workflow/engine/classes/model/AppNotes.php @@ -217,6 +217,12 @@ class AppNotes extends BaseAppNotes $sTo = ((($aUser['USR_FIRSTNAME'] != '') || ($aUser['USR_LASTNAME'] != '')) ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>'; $oSpool = new spoolRun(); + if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) { + $aConfiguration['MESS_RAUTH'] = 0; + } else { + $aConfiguration['MESS_RAUTH'] = 1; + } + $oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH'] == '1' ? true : false,'SMTPSecure' => isset( $aConfiguration['SMTPSecure'] ) ? $aConfiguration['SMTPSecure'] : '') ); $oSpool->create( array ('msg_uid' => '','app_uid' => $appUid,'del_index' => 1,'app_msg_type' => 'DERIVATION','app_msg_subject' => $sSubject,'app_msg_from' => $sFrom,'app_msg_to' => $sTo,'app_msg_body' => $sBody,'app_msg_cc' => '','app_msg_bcc' => '','app_msg_attach' => '','app_msg_template' => '','app_msg_status' => 'pending') ); if (($aConfiguration['MESS_BACKGROUND'] == '') || ($aConfiguration['MESS_TRY_SEND_INMEDIATLY'] == '1')) { diff --git a/workflow/engine/methods/authSources/authSources_Edit.php b/workflow/engine/methods/authSources/authSources_Edit.php index 91c691ad5..49fff84f4 100755 --- a/workflow/engine/methods/authSources/authSources_Edit.php +++ b/workflow/engine/methods/authSources/authSources_Edit.php @@ -88,7 +88,7 @@ if ($fields['AUTH_SOURCE_PROVIDER'] == 'ldap') { // The attributes the users G::loadClass('pmFunctions'); $data = executeQuery('DESCRIBE USERS'); - $fieldSet = array('USR_UID', 'USR_USERNAME', 'USR_PASSWORD', 'USR_EMAIL', 'USR_CREATE_DATE', 'USR_UPDATE_DATE', 'USR_STATUS', 'USR_COUNTRY', 'USR_CITY', 'USR_LOCATION', 'DEP_UID', 'USR_RESUME', 'USR_ROLE', 'USR_REPORTS_TO', 'USR_REPLACED_BY', 'USR_UX'); + $fieldSet = array('USR_UID', 'USR_USERNAME', 'USR_PASSWORD', 'USR_EMAIL', 'USR_CREATE_DATE', 'USR_UPDATE_DATE', 'USR_COUNTRY', 'USR_CITY', 'USR_LOCATION', 'DEP_UID', 'USR_RESUME', 'USR_ROLE', 'USR_REPORTS_TO', 'USR_REPLACED_BY', 'USR_UX'); $attributes = ''; foreach ($data as $value) { if (!(in_array($value['Field'], $fieldSet))) { diff --git a/workflow/engine/methods/authSources/authSources_ImportUsers.php b/workflow/engine/methods/authSources/authSources_ImportUsers.php index 18c51c953..69f64ff3b 100755 --- a/workflow/engine/methods/authSources/authSources_ImportUsers.php +++ b/workflow/engine/methods/authSources/authSources_ImportUsers.php @@ -72,6 +72,22 @@ foreach ($_POST['aUsers'] as $sUser) { foreach ($aAttributes as $value) { if (isset($aUser[$value['attributeUser']])) { $aData[$value['attributeUser']] = str_replace( "*", "'", $aUser[$value['attributeUser']] ); + if ($value['attributeUser'] == 'USR_STATUS') { + $evalValue = $aData[$value['attributeUser']]; + + $statusValue = 'INACTIVE'; + if (is_string($evalValue) && G::toUpper($evalValue) == 'ACTIVE') { + $statusValue = 'ACTIVE'; + } + if (is_bool($evalValue) && $evalValue == true) { + $statusValue = 'ACTIVE'; + } + if ( (is_float($evalValue) || is_int($evalValue) || + is_integer($evalValue) || is_numeric($evalValue)) && (int)$evalValue != 0) { + $statusValue = 'ACTIVE'; + } + $aData[$value['attributeUser']] = $statusValue; + } } } } diff --git a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php index f2d0029d7..b7b2214c8 100644 --- a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php @@ -159,6 +159,11 @@ if ($actionAjax == 'sendMailMessage_JXP') { $aConfiguration['MESS_PASSWORD'] = $passwd; $oSpool = new spoolRun(); + if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) { + $aConfiguration['MESS_RAUTH'] = 0; + } else { + $aConfiguration['MESS_RAUTH'] = 1; + } $oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $passwd,'SMTPAuth' => $aConfiguration['MESS_RAUTH'] ) ); diff --git a/workflow/engine/methods/cases/cases_Ajax.php b/workflow/engine/methods/cases/cases_Ajax.php index 49b6b6cb0..a613547d9 100755 --- a/workflow/engine/methods/cases/cases_Ajax.php +++ b/workflow/engine/methods/cases/cases_Ajax.php @@ -774,6 +774,12 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) { } $oSpool = new spoolRun(); + if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) { + $aConfiguration['MESS_RAUTH'] = 0; + } else { + $aConfiguration['MESS_RAUTH'] = 1; + } + $oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH'] ) ); $passwd = $oSpool->config['MESS_PASSWORD']; diff --git a/workflow/engine/methods/login/retrivePassword.php b/workflow/engine/methods/login/retrivePassword.php index e4a3b6e5c..05f450990 100755 --- a/workflow/engine/methods/login/retrivePassword.php +++ b/workflow/engine/methods/login/retrivePassword.php @@ -55,7 +55,11 @@ if ($userData['USR_EMAIL'] != '' && $userData['USR_EMAIL'] === $data['USR_EMAIL' G::LoadClass('spool'); $oSpool = new spoolRun(); - + if ($aSetup['MESS_RAUTH'] == false || (is_string($aSetup['MESS_RAUTH']) && $aSetup['MESS_RAUTH'] == 'false')) { + $aSetup['MESS_RAUTH'] = 0; + } else { + $aSetup['MESS_RAUTH'] = 1; + } $oSpool->setConfig( array( 'MESS_ENGINE' => $aSetup['MESS_ENGINE'], 'MESS_SERVER' => $aSetup['MESS_SERVER'], diff --git a/workflow/engine/skinEngine/base/extJsInitLoad.html b/workflow/engine/skinEngine/base/extJsInitLoad.html index 13d7ba79d..c5e9b9e98 100755 --- a/workflow/engine/skinEngine/base/extJsInitLoad.html +++ b/workflow/engine/skinEngine/base/extJsInitLoad.html @@ -35,7 +35,7 @@ #loading-msg { font: bold 11px arial,tahoma,sans-serif; } - + @@ -56,15 +56,9 @@ - - {styles} - + {bodyTemplate} diff --git a/workflow/engine/skinEngine/simplified/extJsInitLoad.html b/workflow/engine/skinEngine/simplified/extJsInitLoad.html index 49815f887..d4b183b2e 100755 --- a/workflow/engine/skinEngine/simplified/extJsInitLoad.html +++ b/workflow/engine/skinEngine/simplified/extJsInitLoad.html @@ -36,7 +36,7 @@ #loading-msg { font: bold 11px arial,tahoma,sans-serif; } - + @@ -57,15 +57,9 @@ - - {styles} - + {bodyTemplate} diff --git a/workflow/engine/skinEngine/uxmodern/extJsInitLoad.html b/workflow/engine/skinEngine/uxmodern/extJsInitLoad.html index 13d7ba79d..c5e9b9e98 100644 --- a/workflow/engine/skinEngine/uxmodern/extJsInitLoad.html +++ b/workflow/engine/skinEngine/uxmodern/extJsInitLoad.html @@ -35,7 +35,7 @@ #loading-msg { font: bold 11px arial,tahoma,sans-serif; } - + @@ -56,15 +56,9 @@ - - {styles} - + {bodyTemplate} diff --git a/workflow/engine/skinEngine/uxs/extJsInitLoad.html b/workflow/engine/skinEngine/uxs/extJsInitLoad.html index 13d7ba79d..c5e9b9e98 100644 --- a/workflow/engine/skinEngine/uxs/extJsInitLoad.html +++ b/workflow/engine/skinEngine/uxs/extJsInitLoad.html @@ -35,7 +35,7 @@ #loading-msg { font: bold 11px arial,tahoma,sans-serif; } - + @@ -56,15 +56,9 @@ - - {styles} - + {bodyTemplate} diff --git a/workflow/engine/templates/admin/emails.js b/workflow/engine/templates/admin/emails.js index a931e6f06..bcab35a33 100644 --- a/workflow/engine/templates/admin/emails.js +++ b/workflow/engine/templates/admin/emails.js @@ -673,6 +673,7 @@ var testEmailWindow = new Ext.Window({ width: 470, closable:false, plain: true, + modal: true, autoHeight: true, layout: 'fit', y: 82, @@ -683,6 +684,7 @@ var testEmailWindowMail = new Ext.Window({ width: 470, closable:false, plain: true, + modal: true, autoHeight: true, layout: 'fit', y: 82, diff --git a/workflow/engine/templates/cases/casesList.js b/workflow/engine/templates/cases/casesList.js index be86dcea1..8c376ad3a 100644 --- a/workflow/engine/templates/cases/casesList.js +++ b/workflow/engine/templates/cases/casesList.js @@ -491,7 +491,7 @@ Ext.onReady ( function() { return _FNF(s.data.USR_USERNAME, s.data.USR_FIRSTNAME, s.data.USR_LASTNAME); } else { - return ''; + return '[' + _('ID_UNASSIGNED').toUpperCase() + ']'; } }; @@ -808,7 +808,9 @@ Ext.onReady ( function() { comboProcess.getStore().loadData(processValues); }, failure: function ( result, request) { - Ext.MessageBox.alert('Failed', result.responseText); + if (typeof(result.responseText) != 'undefined') { + Ext.MessageBox.alert(_('ID_FAILED'), result.responseText); + } } }); @@ -927,7 +929,9 @@ Ext.onReady ( function() { }, failure: function ( result, request) { - Ext.MessageBox.alert('Failed', result.responseText); + if (typeof(result.responseText) != 'undefined') { + Ext.MessageBox.alert(_('ID_FAILED'), result.responseText); + } } }); }}, @@ -1257,7 +1261,9 @@ Ext.onReady ( function() { } }, failure: function ( result, request) { - Ext.MessageBox.alert( _('ID_FAILED'), result.responseText); + if (typeof(result.responseText) != 'undefined') { + Ext.MessageBox.alert( _('ID_FAILED'), result.responseText); + } } }); }); @@ -1285,7 +1291,9 @@ Ext.onReady ( function() { } }, failure: function ( result, request) { - Ext.MessageBox.alert('Failed', result.responseText); + if (typeof(result.responseText) != 'undefined') { + Ext.MessageBox.alert(_('ID_FAILED'), result.responseText); + } } }); }); diff --git a/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml b/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml index bb743aeec..5c9a5192f 100755 --- a/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml +++ b/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml @@ -9,11 +9,11 @@ Enable HTML Editing - + Restore Original HTML - + Refresh View @@ -79,13 +79,14 @@ getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").onclick=function() label: "@G::LoadTranslation(ID_MSG_ENABLE_HTML_EDITING)", size:{ w: 350, h: 150 }, action: function() { }, - cancel: function() { + cancel: function () { getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").checked = false; } }); - dynaformEditor.setEnableTemplate( this.checked ); + + dynaformEditor.setEnableTemplate(this.checked); } } ]]> - \ No newline at end of file + \ No newline at end of file diff --git a/workflow/engine/xmlform/dynaforms/fields_Toolbar.xml b/workflow/engine/xmlform/dynaforms/fields_Toolbar.xml index b4e2bbf64..d8ba50262 100755 --- a/workflow/engine/xmlform/dynaforms/fields_Toolbar.xml +++ b/workflow/engine/xmlform/dynaforms/fields_Toolbar.xml @@ -1,5 +1,7 @@ + + Save @@ -92,4 +94,6 @@ Grid + + \ No newline at end of file diff --git a/workflow/engine/xmlform/dynaforms/fields_ToolbarGrid.xml b/workflow/engine/xmlform/dynaforms/fields_ToolbarGrid.xml index 0a8aec0d0..e3048ab0e 100755 --- a/workflow/engine/xmlform/dynaforms/fields_ToolbarGrid.xml +++ b/workflow/engine/xmlform/dynaforms/fields_ToolbarGrid.xml @@ -1,5 +1,7 @@ + + Save @@ -49,4 +51,6 @@ File + + \ No newline at end of file diff --git a/workflow/public_html/sysGeneric.php b/workflow/public_html/sysGeneric.php index 473428c5c..76cf15936 100755 --- a/workflow/public_html/sysGeneric.php +++ b/workflow/public_html/sysGeneric.php @@ -607,6 +607,7 @@ $noLoginFiles[] = 'retrivePassword'; $noLoginFiles[] = 'defaultAjaxDynaform'; $noLoginFiles[] = 'dynaforms_checkDependentFields'; + $noLoginFiles[] = 'genericAjax'; $noLoginFolders[] = 'services'; $noLoginFolders[] = 'tracker';