mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Fix CountrySelect definition (#4799)
This commit is contained in:
parent
2432654028
commit
60562677b8
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user