mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Fix #3864: Profile field translations broken
This commit is contained in:
parent
501c8448d8
commit
710cb109d1
@ -8,6 +8,8 @@ HumHub Change Log
|
||||
- Fix #3849: ModuleCleanupJob produces an error due to ".." in path
|
||||
- Fix #3860: Console/Cli Marketplace actions broken
|
||||
- Fix #3862: Profile field type checkbox list with multiple values broken
|
||||
- Fix #3864: Profile field translations broken
|
||||
|
||||
|
||||
1.4.0 (February 4, 2020)
|
||||
------------------------
|
||||
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Class m200217_122108_profile_translation_fix
|
||||
*/
|
||||
class m200217_122108_profile_translation_fix extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->update('profile_field', ['translation_category' => 'UserModule.models_Profile'], ['translation_category' => 'UserModule.models_Profile']);
|
||||
$this->update('profile_field', ['title' => 'First name'], ['title' => 'Firstname', 'internal_name' => 'firstname']);
|
||||
$this->update('profile_field', ['title' => 'Last name'], ['title' => 'Lastname', 'internal_name' => 'lastname']);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
echo "m200217_122108_profile_translation_fix cannot be reverted.\n";
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
// Use up()/down() to run migration code without a transaction.
|
||||
public function up()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "m200217_122108_profile_translation_fix cannot be reverted.\n";
|
||||
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user