spaces and symbolse in files names
This commit is contained in:
parent
8c1c2cf5cd
commit
deee41345d
@ -71,6 +71,8 @@ class UserCard extends \common\models\UserCard
|
||||
if ($post['fields']) {
|
||||
FieldsValueNew::deleteAll(['item_id' => $this->id, 'item_type' => FieldsValueNew::TYPE_PROFILE]);
|
||||
foreach ($post['fields'] as $item) {
|
||||
$item['value'] = urldecode($item['value']);
|
||||
|
||||
$fieldsValue = new FieldsValueNew();
|
||||
$fieldsValue->field_id = $item['field_id'];
|
||||
$fieldsValue->value = $item['value'];
|
||||
|
@ -51,6 +51,8 @@ class Note extends \common\models\Note
|
||||
FieldsValueNew::deleteAll(['item_id' => $this->id, 'item_type' => FieldsValueNew::TYPE_NOTE]);
|
||||
|
||||
foreach ( $post['fields'] as $item) {
|
||||
$item['value'] = urldecode($item['value']);
|
||||
|
||||
$fieldsValue = new FieldsValueNew();
|
||||
$fieldsValue->field_id = $item['field_id'];
|
||||
$fieldsValue->item_id = $this->id;
|
||||
|
Loading…
Reference in New Issue
Block a user