mirror of
https://github.com/humhub/humhub.git
synced 2025-03-04 07:08:58 +01:00
Fixed: Error on profile field setting update
This commit is contained in:
parent
e12600bfe6
commit
1dcc408056
@ -56,8 +56,6 @@ class Birthday extends DateTime
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName.'_hide_year', 'INT(1)');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
return parent::save();
|
||||
|
@ -68,8 +68,6 @@ class DateTime extends BaseType
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName, 'DATETIME');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
return parent::save();
|
||||
|
@ -80,8 +80,6 @@ class Number extends BaseType
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName, 'INT');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
return parent::save();
|
||||
|
@ -71,8 +71,6 @@ class Select extends BaseType
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName, 'VARCHAR(255)');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
return parent::save();
|
||||
|
@ -144,8 +144,6 @@ class Text extends BaseType
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName, 'VARCHAR(255)');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
return parent::save();
|
||||
|
@ -56,10 +56,8 @@ class TextArea extends BaseType
|
||||
if (!\humhub\modules\user\models\Profile::columnExists($columnName)) {
|
||||
$query = Yii::$app->db->getQueryBuilder()->addColumn(\humhub\modules\user\models\Profile::tableName(), $columnName, 'TEXT');
|
||||
Yii::$app->db->createCommand($query)->execute();
|
||||
} else {
|
||||
Yii::error('Could not add profile column - already exists!');
|
||||
}
|
||||
|
||||
|
||||
return parent::save();
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ use yii\helpers\Url;
|
||||
matcher: function (flag, subtext, should_start_with_space) {
|
||||
var match, regexp;
|
||||
|
||||
regexp = new RegExp(/(\s+|^)@([\u00BF-\u1FFF\u2C00-\uD7FF\w\s\-\']+$)/);
|
||||
regexp = new RegExp(/(\s+|^)@([\u00C0-\u1FFF\u2C00-\uD7FF\w\s\-\']+$)/);
|
||||
match = regexp.exec(subtext);
|
||||
|
||||
if (match && typeof match[2] !== 'undefined') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user