Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
748007ce
Commit
748007ce
authored
Dec 08, 2014
by
Serge Postrash
Committed by
Alexander Makarov
Dec 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6404: advanced application template `Alert` widget was generating…
Fixes #6404: advanced application template `Alert` widget was generating duplicate IDs in case of multiple flashes
parent
42d26e48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Alert.php
apps/advanced/frontend/widgets/Alert.php
+2
-2
CHANGELOG.md
framework/CHANGELOG.md
+1
-1
No files found.
apps/advanced/frontend/widgets/Alert.php
View file @
748007ce
...
...
@@ -58,12 +58,12 @@ class Alert extends \yii\bootstrap\Widget
foreach
(
$flashes
as
$type
=>
$data
)
{
if
(
isset
(
$this
->
alertTypes
[
$type
]))
{
$data
=
(
array
)
$data
;
foreach
(
$data
as
$message
)
{
foreach
(
$data
as
$
i
=>
$
message
)
{
/* initialize css class for each alert box */
$this
->
options
[
'class'
]
=
$this
->
alertTypes
[
$type
]
.
$appendCss
;
/* assign unique id to each alert box */
$this
->
options
[
'id'
]
=
$this
->
getId
()
.
'-'
.
$type
;
$this
->
options
[
'id'
]
=
$this
->
getId
()
.
'-'
.
$type
.
'-'
.
$i
;
echo
\yii\bootstrap\Alert
::
widget
([
'body'
=>
$message
,
...
...
framework/CHANGELOG.md
View file @
748007ce
...
...
@@ -4,7 +4,7 @@ Yii Framework 2 Change Log
2.
0.2 under development
-----------------------
-
no changes in this release.
-
Bug #6404: advanced application template
`Alert`
widget was generating duplicate IDs in case of multiple flashes (SDKiller)
2.0.1 December 07, 2014
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment