Skip to content

Commit 088fedd

Browse files
committed
0.5.3
Исправление ошибок
1 parent 3a876ac commit 088fedd

File tree

9 files changed

+569
-548
lines changed

9 files changed

+569
-548
lines changed

common/models/search/DocumentSearch.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
*/
1515
class DocumentSearch extends DocumentForm
1616
{
17+
public $elements_fields;
18+
1719
/**
1820
* {@inheritdoc}
1921
*/
2022
public function rules()
2123
{
2224
return [
2325
[['id', 'status', 'is_folder', 'parent_id', 'item_id', 'template_id', 'created_at', 'updated_at', 'created_by', 'updated_by', 'position', 'access'], 'integer'],
24-
[['name', 'alias', 'title', 'meta_keywords', 'meta_description', 'annotation', 'content', 'ip', 'user_agent'], 'safe'],
26+
[['name', 'alias', 'title', 'meta_keywords', 'meta_description', 'annotation', 'content', 'ip', 'user_agent', 'elements_fields'], 'safe'],
2527
];
2628
}
2729

@@ -105,6 +107,8 @@ public function searchElement($params)
105107

106108
$this->load($params);
107109

110+
$this->validate();
111+
108112
if ($this->elements_fields) {
109113
if ($this->validateFields()) {
110114
$query = $this->setSearchFieldsQuery($query);

common/widgets/Basket/BasketButton.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,10 @@ public function run()
4949
])
5050
->one();
5151

52-
if ($parentData['status'] == Constants::STATUS_DOC_ACTIVE) {
53-
return $this->render('@frontend/views/templates/control/blocks/basket/_form-add', [
54-
'widget' => $this,
55-
'modelDocumentForm' => $modelDocumentForm,
56-
'valuePrice' => $valuePrice
57-
]);
58-
}
59-
60-
return '';
52+
return $this->render('@frontend/views/templates/control/blocks/basket/_form-add', [
53+
'widget' => $this,
54+
'modelDocumentForm' => $modelDocumentForm,
55+
'valuePrice' => $valuePrice
56+
]);
6157
}
6258
}

common/widgets/Basket/BasketManage.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,10 @@ public function run()
4747
])
4848
->one();
4949

50-
if ($parentData['status'] == Constants::STATUS_DOC_ACTIVE) {
51-
return $this->render('@frontend/views/templates/control/blocks/basket/_form-add-remove', [
52-
'widget' => $this,
53-
'modelDocumentForm' => $modelDocumentForm,
54-
'valuePrice' => $valuePrice
55-
]);
56-
}
57-
58-
return '';
50+
return $this->render('@frontend/views/templates/control/blocks/basket/_form-add-remove', [
51+
'widget' => $this,
52+
'modelDocumentForm' => $modelDocumentForm,
53+
'valuePrice' => $valuePrice
54+
]);
5955
}
6056
}
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
id;name;alias;title;meta_keywords;meta_description;annotation;content;status;is_folder;parent_id;item_id;template_id;created_at;updated_at;created_by;updated_by;position;access;ip;user_agent
2-
1;"Yii2 CMS";site;"Yii2 CMS";;;"<p>Yii2 CMS</p>
2+
1;Yii2 CMS;site;Yii2 CMS;;;"<p>Yii2 CMS</p>
33
";;1;1;;;;1537605608;1537622526;1;1;;1;;
4-
2;"������� ��������";main;"������� ��������";;;;"<h1>������� ��������</h1>
4+
2;������� ��������;main;������� ��������;;;;"<h1>������� ��������</h1>
55
";1;1;1;;;1537605692;1537629484;1;1;0;1;;
66
3;����������;post;����������;;;;"<h1>����������</h1>
7-
";1;1;1;;1;1537605733;1551938865;1;1;1;1;31.173.100.121;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.8 Safari/537.36"
7+
";1;1;1;;1;1537605733;1551938865;1;1;1;1;;
88
4;������;product;������;;;;"<h1>������</h1>
9-
";1;1;1;;6;1537605785;1551938958;1;1;2;1;31.173.100.121;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.8 Safari/537.36"
9+
";1;1;1;;6;1537605785;1551938958;1;1;2;1;;
1010
5;�����;login;�����;;;;"<h1>�����</h1>
1111
";1;1;1;;;1537605836;1537624247;1;1;4;2;;
1212
6;�����������;signup;�����������;;;;"<h1>�����������</h1>
1313
";1;1;1;;;1537609158;1537609158;1;1;5;2;;
1414
7;�������;profile;�������;;;;"<h1>�������</h1>
1515
";1;1;1;;;1537663746;1537680305;1;1;6;3;;
16-
8;"������� �����";template-email;"������� �����";;;;;1;1;;;;1537671220;1537680333;1;1;;1;;
17-
9;"������������� �����������";confirm-email;"������������� �����������";;;;"<p>������������, {NAME_1}!</p>
16+
8;�������;basket;�������;;;;;6;1;1;;5;1540742508;1551760961;1;1;7;1;;
17+
9;������������ ������;i18n;������������ ������;;;;;1;1;1;;;1540742553;1549798362;1;1;8;1;;
18+
10;����� ��������������;geo;;;;;;1;1;1;;2;1546914610;1546915775;1;1;9;1;;
19+
11;�����/������;discounts;�����/������;;;<p>�����/������<br></p>;<h1>�����/������</h1>;6;1;1;;4;1550998313;1551937919;1;1;3;1;;
20+
12;������;service;;;;;;1;1;;;;1552098494;1552098494;1;1;;3;;
21+
13;�����������;comments;;;;;;1;1;12;;;1552098626;1552098626;1;1;0;3;;
22+
14;������/�������;raiting;;;;;;1;1;12;;;1552098699;1552098699;1;1;1;3;;
23+
15;���������� ���������;visits;;;;;;1;1;12;;;1552098756;1552098877;1;1;2;3;;
24+
16;������� �����;template-email;������� �����;;;;;1;1;12;;;1537671220;1537680333;1;1;3;1;;
25+
17;������������� �����������;confirm-email;������������� �����������;;;;"<p>������������, {NAME_1}!</p>
1826

1927
<p>����������, ��� ������������� ������ ��. ����� �������� �� ������.</p>
2028

@@ -27,17 +35,13 @@ id;name;alias;title;meta_keywords;meta_description;annotation;content;status;is_
2735
<p>���� �� �� ���������������� � �� ����� �����, �� ������ ������� ��� ������.</p>
2836

2937
<p>{DATE_1}</p>
30-
";1;;8;;;1537671399;1547216315;1;1;;3;;
31-
10;"����� ������";password-reset-token;"����� ������";;;;"<p>������������, {EMAIL_1}!</p>
38+
";1;;16;;;1537671399;1547216315;1;1;;3;;
39+
18;����� ������;password-reset-token;����� ������;;;;"<p>������������, {EMAIL_1}!</p>
3240

3341
<p>����������, ��������� �� ������ ����, ����� �������� ��� ������.</p>
3442

3543
<p><a href=""{URL_1}"">����� ������</a></p>
3644

3745
<p>{DATE_1}</p>
38-
";1;;8;;;1537671463;1537673799;1;1;;1;;
39-
11;�������;basket;�������;;;;;6;1;1;;5;1540742508;1551760961;1;1;7;1;31.173.100.102;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3717.0 Safari/537.36"
40-
12;"������������ ������";i18n;"������������ ������";;;;;1;1;1;;;1540742553;1549798362;1;1;8;1;;
41-
13;"����� ��������������";geo;;;;;;1;1;1;;2;1546914610;1546915775;1;1;9;1;;
42-
14;"������� ������������ 1";profile-1;;;;;;1;1;7;;3;1546998996;1547005164;1;1;;3;;
43-
15;�����/������;discounts;�����/������;;;<p>�����/������<br></p>;<h1>�����/������</h1>;6;1;1;;4;1550998313;1551937919;1;1;3;1;31.173.100.121;"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3724.8 Safari/537.36"
46+
";1;;16;;;1537671463;1537673799;1;1;;1;;
47+
19;������� ������������ 1;profile-1;;;;;;1;1;7;;3;1546998996;1547005164;1;1;;3;;

console/migrations/csv/message.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,3 +470,5 @@ id;language;translation;hash
470470
654;en;"Template for articles";013b33bfa78a9d97427850bf52e13570
471471
655;en;"Product Template";67ff9f52709fa4160c1da4f0d9db98c1
472472
656;en;"Profile template";48ec8cd7ee885a7f07b90af5a1bbfdee
473+
657;en;Service;ce3f400a59263910d289872d4de7ec53
474+
658;en;Rating;c0788864a7eb52fd0efa9d7e25eb46da

0 commit comments

Comments
 (0)