mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
Fixed #1176: Removed unused space website attribute
This commit is contained in:
parent
8d5f63ef19
commit
c516a452d5
@ -4,6 +4,8 @@ Here you will learn how you can adapt existing modules to working fine with actu
|
||||
|
||||
## to 1.1
|
||||
|
||||
- Dropped unused space attribute "website"
|
||||
|
||||
- ContentContainer Model Changes
|
||||
- Removed canWrite method (now requires own implementation using permissions)
|
||||
|
||||
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Schema;
|
||||
use yii\db\Migration;
|
||||
|
||||
class m160225_180229_remove_website extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->dropColumn('space', 'website');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
echo "m160225_180229_remove_website cannot be reverted.\n";
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
// Use safeUp/safeDown to run migration code within a transaction
|
||||
public function safeUp()
|
||||
{
|
||||
}
|
||||
|
||||
public function safeDown()
|
||||
{
|
||||
}
|
||||
*/
|
||||
}
|
@ -25,7 +25,6 @@ use humhub\modules\user\models\User;
|
||||
* @property integer $wall_id
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property string $website
|
||||
* @property integer $join_policy
|
||||
* @property integer $visibility
|
||||
* @property integer $status
|
||||
@ -83,8 +82,7 @@ class Space extends ContentContainerActiveRecord implements \humhub\modules\sear
|
||||
[['join_policy'], 'in', 'range' => [0, 1, 2]],
|
||||
[['visibility'], 'in', 'range' => [0, 1, 2]],
|
||||
[['visibility'], 'checkVisibility'],
|
||||
[['guid', 'name', 'website'], 'string', 'max' => 45],
|
||||
[['website'], 'url'],
|
||||
[['guid', 'name'], 'string', 'max' => 45],
|
||||
];
|
||||
}
|
||||
|
||||
@ -95,7 +93,7 @@ class Space extends ContentContainerActiveRecord implements \humhub\modules\sear
|
||||
{
|
||||
$scenarios = parent::scenarios();
|
||||
|
||||
$scenarios['edit'] = ['name', 'color', 'description', 'website', 'tags', 'join_policy', 'visibility', 'default_content_visibility'];
|
||||
$scenarios['edit'] = ['name', 'color', 'description', 'tags', 'join_policy', 'visibility', 'default_content_visibility'];
|
||||
$scenarios['create'] = ['name', 'color', 'description', 'join_policy', 'visibility'];
|
||||
|
||||
return $scenarios;
|
||||
@ -111,7 +109,6 @@ class Space extends ContentContainerActiveRecord implements \humhub\modules\sear
|
||||
'name' => Yii::t('SpaceModule.models_Space', 'Name'),
|
||||
'color' => Yii::t('SpaceModule.models_Space', 'Color'),
|
||||
'description' => Yii::t('SpaceModule.models_Space', 'Description'),
|
||||
'website' => Yii::t('SpaceModule.models_Space', 'Website URL (optional)'),
|
||||
'join_policy' => Yii::t('SpaceModule.models_Space', 'Join Policy'),
|
||||
'visibility' => Yii::t('SpaceModule.models_Space', 'Visibility'),
|
||||
'status' => Yii::t('SpaceModule.models_Space', 'Status'),
|
||||
|
@ -33,8 +33,6 @@ $this->registerCssFile('@web/resources/space/colorpicker/css/bootstrap-colorpick
|
||||
|
||||
<?php echo $form->field($model, 'description')->textarea(['rows' => 6]); ?>
|
||||
|
||||
<?php echo $form->field($model, 'website')->textInput(['maxlength' => 45]); ?>
|
||||
|
||||
<?php echo $form->field($model, 'tags')->textInput(['maxlength' => 200]); ?>
|
||||
|
||||
<?php echo Html::submitButton(Yii::t('SpaceModule.views_admin_edit', 'Save'), array('class' => 'btn btn-primary')); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user