BUG 12562 "Date appears incorrect in the Generated Document..." SOLVED
- Date appears incorrect in the Generated Document List and Input Document List - Bug has been reviewed and has not been able to replicate, it has been tested on a local installation version 2.0.43 where I verify that the dates are correct - We found hardcoded code, the same has been corrected * Available from version ProcessMaker-2.5.2-testing.1
This commit is contained in:
@@ -339,7 +339,7 @@ class Configurations // extends Configuration
|
||||
|
||||
public function usersNameFormatBySetParameters($formatUserName, $userName, $firstName, $lastName)
|
||||
{
|
||||
$usersNameFormat = (!empty($formatUserName))? str_replace(array("@userName", "@firstName", "@lastName"), array($userName, $firstName, $lastName), $formatUserName) : null;
|
||||
$usersNameFormat = str_replace(array("@userName", "@firstName", "@lastName"), array($userName, $firstName, $lastName), $formatUserName);
|
||||
$usersNameFormat = trim($usersNameFormat);
|
||||
|
||||
return $usersNameFormat;
|
||||
@@ -356,23 +356,21 @@ class Configurations // extends Configuration
|
||||
{
|
||||
$field = "USR_LASTNAME";
|
||||
|
||||
$confEnvSetting = $this->getConfiguration("ENVIRONMENT_SETTINGS", "");
|
||||
$confEnvSetting = $this->getFormats();
|
||||
|
||||
if (is_array($confEnvSetting) && isset($confEnvSetting["format"])) {
|
||||
$arrayAux = explode(" ", str_replace(array("(", ")", ","), array(null, null, null), $confEnvSetting["format"]));
|
||||
$arrayAux = explode(" ", str_replace(array("(", ")", ","), array(null, null, null), $confEnvSetting["format"]));
|
||||
|
||||
if (isset($arrayAux[0])) {
|
||||
switch (trim($arrayAux[0])) {
|
||||
case "@userName":
|
||||
$field = "USR_USERNAME";
|
||||
break;
|
||||
case "@firstName":
|
||||
$field = "USR_FIRSTNAME";
|
||||
break;
|
||||
case "@lastName":
|
||||
$field = "USR_LASTNAME";
|
||||
break;
|
||||
}
|
||||
if (isset($arrayAux[0])) {
|
||||
switch (trim($arrayAux[0])) {
|
||||
case "@userName":
|
||||
$field = "USR_USERNAME";
|
||||
break;
|
||||
case "@firstName":
|
||||
$field = "USR_FIRSTNAME";
|
||||
break;
|
||||
case "@lastName":
|
||||
$field = "USR_LASTNAME";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user