Merge branch 'develop' of bitbucket.org:colosa/processmaker into develop
This commit is contained in:
@@ -452,7 +452,7 @@ class AdditionalTables extends BaseAdditionalTables
|
||||
if ($filter != '' && is_string($filter)) {
|
||||
$stringOr = '';
|
||||
$closure = '';
|
||||
$types = array('INTEGER', 'BIGINT', 'SMALLINT', 'TINYINT', 'DECIMAL', 'DOUBLE', 'FLOAT', 'REAL');
|
||||
$types = ['INTEGER', 'BIGINT', 'SMALLINT', 'TINYINT', 'DECIMAL', 'DOUBLE', 'FLOAT', 'REAL', 'BOOLEAN'];
|
||||
foreach ($aData['FIELDS'] as $aField) {
|
||||
if (($appUid == false && $aField['FLD_NAME'] != 'APP_UID') || ($appUid == true)) {
|
||||
if (in_array($aField['FLD_TYPE'], $types)) {
|
||||
|
||||
@@ -99,7 +99,7 @@ class EmailServerMapBuilder
|
||||
|
||||
$tMap->addColumn('OAUTH_CLIENT_SECRET', 'OauthClientSecret', 'string', CreoleTypes::VARCHAR, true, 512);
|
||||
|
||||
$tMap->addColumn('OAUTH_REFRESH_TOKEN', 'OauthRefreshToken', 'string', CreoleTypes::VARCHAR, true, 512);
|
||||
$tMap->addColumn('OAUTH_REFRESH_TOKEN', 'OauthRefreshToken', 'string', CreoleTypes::LONGVARCHAR, false, null);
|
||||
|
||||
} // doBuild()
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ abstract class BaseEmailServer extends BaseObject implements Persistent
|
||||
* The value for the oauth_refresh_token field.
|
||||
* @var string
|
||||
*/
|
||||
protected $oauth_refresh_token = '';
|
||||
protected $oauth_refresh_token;
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
@@ -736,7 +736,7 @@ abstract class BaseEmailServer extends BaseObject implements Persistent
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->oauth_refresh_token !== $v || $v === '') {
|
||||
if ($this->oauth_refresh_token !== $v) {
|
||||
$this->oauth_refresh_token = $v;
|
||||
$this->modifiedColumns[] = EmailServerPeer::OAUTH_REFRESH_TOKEN;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user