Fix CountrySelect definition (#4799)

This commit is contained in:
Yuriy Bakhtin 2021-01-26 15:31:48 +03:00 committed by GitHub
parent 2432654028
commit 60562677b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,10 @@
HumHub Changelog
================
1.7.3 (Unreleased)
------------------------
- Fix #4794: Fix CountrySelect definition
1.7.2 (January 21, 2021)
------------------------
- Fix #4668: table-responsive tables do not overflow due to default word break style

View File

@ -9,6 +9,7 @@
namespace humhub\modules\user\models\fieldtype;
use Yii;
use yii\helpers\ArrayHelper;
/**
* ProfileFieldTypeSelect handles numeric profile fields.
@ -47,7 +48,7 @@ class Select extends BaseType
*/
public function getFormDefinition($definition = [])
{
return parent::getFormDefinition([
return parent::getFormDefinition(ArrayHelper::merge([
get_class($this) => [
'type' => 'form',
'title' => Yii::t('UserModule.profile', 'Select field options'),
@ -59,7 +60,7 @@ class Select extends BaseType
'hint' => Yii::t('UserModule.profile', 'One option per line. Key=>Value Format (e.g. yes=>Yes)')
],
]
]]);
]], $definition));
}
/**