Merged in release/3.7.3 (pull request #8354)
release/3.7.3 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -832,6 +832,16 @@ class WorkspaceTools
|
||||
$description = $database->executeQuery($database->generateDescTableSQL($table));
|
||||
$oldSchema[$table] = [];
|
||||
foreach ($description as $field) {
|
||||
$type = $field['Type'];
|
||||
if ($type === "int") {
|
||||
$field['Type'] = $type . "(11)";
|
||||
}
|
||||
if ($type === "tinyint") {
|
||||
$field['Type'] = $type . "(4)";
|
||||
}
|
||||
if ($type === "bigint") {
|
||||
$field['Type'] = $type . "(20)";
|
||||
}
|
||||
$oldSchema[$table][$field['Field']]['Field'] = $field['Field'];
|
||||
$oldSchema[$table][$field['Field']]['Type'] = $field['Type'];
|
||||
$oldSchema[$table][$field['Field']]['Null'] = $field['Null'];
|
||||
|
||||
@@ -198,6 +198,9 @@ class Users extends BaseUsers
|
||||
if (empty($aFields['USR_DEFAULT_LANG'])) {
|
||||
$aFields['USR_DEFAULT_LANG'] = 'en';
|
||||
}
|
||||
//sometimes the USR_DEFAULT_LANG value is made up, it is formatted in order to find the value.
|
||||
$explode = explode('-', $aFields['USR_DEFAULT_LANG']);
|
||||
$aFields['USR_DEFAULT_LANG'] = strtolower($explode[0]);
|
||||
$translations = new Language();
|
||||
$translation = $translations->loadByCode($aFields['USR_DEFAULT_LANG']);
|
||||
$aFields['USR_DEFAULT_LANG_NAME'] = $translation['LANGUAGE_NAME'];
|
||||
|
||||
Reference in New Issue
Block a user