mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 09:40:41 +08:00
Fixes #1688: ActiveForm is creating duplicated messages in error summary
This commit is contained in:
@@ -43,3 +43,11 @@ a.desc:after { content: /*"\e114"*/"\e152"; }
|
|||||||
|
|
||||||
.sort-ordinal a.asc:after { content: "\e155"; }
|
.sort-ordinal a.asc:after { content: "\e155"; }
|
||||||
.sort-ordinal a.desc:after { content: "\e156"; }
|
.sort-ordinal a.desc:after { content: "\e156"; }
|
||||||
|
|
||||||
|
.error-summary {
|
||||||
|
color: #b94a48;
|
||||||
|
background: #fdf7f7;
|
||||||
|
border-left: 3px solid #eed3d7;
|
||||||
|
padding: 10px 20px;
|
||||||
|
margin: 0 0 15px 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -43,3 +43,11 @@ a.desc:after { content: /*"\e114"*/"\e152"; }
|
|||||||
|
|
||||||
.sort-ordinal a.asc:after { content: "\e155"; }
|
.sort-ordinal a.asc:after { content: "\e155"; }
|
||||||
.sort-ordinal a.desc:after { content: "\e156"; }
|
.sort-ordinal a.desc:after { content: "\e156"; }
|
||||||
|
|
||||||
|
.error-summary {
|
||||||
|
color: #b94a48;
|
||||||
|
background: #fdf7f7;
|
||||||
|
border-left: 3px solid #eed3d7;
|
||||||
|
padding: 10px 20px;
|
||||||
|
margin: 0 0 15px 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -44,3 +44,11 @@ a.desc:after { content: /*"\e114"*/"\e152"; }
|
|||||||
|
|
||||||
.sort-ordinal a.asc:after { content: "\e155"; }
|
.sort-ordinal a.asc:after { content: "\e155"; }
|
||||||
.sort-ordinal a.desc:after { content: "\e156"; }
|
.sort-ordinal a.desc:after { content: "\e156"; }
|
||||||
|
|
||||||
|
.error-summary {
|
||||||
|
color: #b94a48;
|
||||||
|
background: #fdf7f7;
|
||||||
|
border-left: 3px solid #eed3d7;
|
||||||
|
padding: 10px 20px;
|
||||||
|
margin: 0 0 15px 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -16,10 +16,12 @@ Yii Framework 2 Change Log
|
|||||||
- Bug #1591: StringValidator is accessing undefined property (qiangxue)
|
- Bug #1591: StringValidator is accessing undefined property (qiangxue)
|
||||||
- Bug #1597: Added `enableAutoLogin` to basic and advanced application templates so "remember me" now works properly (samdark)
|
- Bug #1597: Added `enableAutoLogin` to basic and advanced application templates so "remember me" now works properly (samdark)
|
||||||
- Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
|
- Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
|
||||||
|
- Bug #1688: ActiveForm is creating duplicated messages in error summary (qiangxue)
|
||||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
||||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
||||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
||||||
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
|
- Bug: Fixed issue with tabular input on ActiveField::radio() and ActiveField::checkbox() (jom)
|
||||||
|
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
|
||||||
- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
|
- Enh #797: Added support for validating multiple columns by `UniqueValidator` and `ExistValidator` (qiangxue)
|
||||||
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
|
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
|
||||||
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
|
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
|
||||||
@@ -51,7 +53,6 @@ Yii Framework 2 Change Log
|
|||||||
- Chg: Changed the signature of `urlCreator` and button creators for `yii\gridview\ActionColumn` (qiangxue)
|
- Chg: Changed the signature of `urlCreator` and button creators for `yii\gridview\ActionColumn` (qiangxue)
|
||||||
- New #1438: [MongoDB integration](https://github.com/yiisoft/yii2-mongodb) ActiveRecord and Query (klimov-paul)
|
- New #1438: [MongoDB integration](https://github.com/yiisoft/yii2-mongodb) ActiveRecord and Query (klimov-paul)
|
||||||
- New #1393: [Codeception testing framework integration](https://github.com/yiisoft/yii2-codeception) (Ragazzo)
|
- New #1393: [Codeception testing framework integration](https://github.com/yiisoft/yii2-codeception) (Ragazzo)
|
||||||
- Enh #364: Improve Inflector::slug with `intl` transliteration. Improved transliteration char map. (tonydspaniard)
|
|
||||||
|
|
||||||
2.0.0 alpha, December 1, 2013
|
2.0.0 alpha, December 1, 2013
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|||||||
@@ -365,7 +365,7 @@
|
|||||||
var updateSummary = function ($form, messages) {
|
var updateSummary = function ($form, messages) {
|
||||||
var data = $form.data('yiiActiveForm'),
|
var data = $form.data('yiiActiveForm'),
|
||||||
$summary = $form.find(data.settings.errorSummary),
|
$summary = $form.find(data.settings.errorSummary),
|
||||||
$ul = $summary.find('ul');
|
$ul = $summary.find('ul').html('');
|
||||||
|
|
||||||
if ($summary.length && messages) {
|
if ($summary.length && messages) {
|
||||||
$.each(data.attributes, function () {
|
$.each(data.attributes, function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user