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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
6944ca1f
Commit
6944ca1f
authored
Jan 15, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark event as handled when filter decides to abort action
fixes #1984
parent
71e4d408
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActionFilter.php
framework/base/ActionFilter.php
+3
-0
No files found.
framework/CHANGELOG.md
View file @
6944ca1f
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
-
Enh #1894: The path aliases
`@webroot`
and
`@web`
are now available right after the application is initialized (qiangxue)
-
Enh #1894: The path aliases
`@webroot`
and
`@web`
are now available right after the application is initialized (qiangxue)
-
Enh #1921: Grid view ActionColumn now allow to name buttons like
`{controller/action}`
(creocoder)
-
Enh #1921: Grid view ActionColumn now allow to name buttons like
`{controller/action}`
(creocoder)
-
Enh #1973:
`yii message/extract`
is now able to generate
`.po`
files (SergeiKutanov, samdark)
-
Enh #1973:
`yii message/extract`
is now able to generate
`.po`
files (SergeiKutanov, samdark)
-
Enh #1984: ActionFilter will now mark event as handled when action run is aborted (cebe)
-
Enh: Added
`favicon.ico`
and
`robots.txt`
to default application templates (samdark)
-
Enh: Added
`favicon.ico`
and
`robots.txt`
to default application templates (samdark)
-
Enh: Added
`Widget::autoIdPrefix`
to support prefixing automatically generated widget IDs (qiangxue)
-
Enh: Added
`Widget::autoIdPrefix`
to support prefixing automatically generated widget IDs (qiangxue)
-
Enh: Support for file aliases in console command 'message' (omnilight)
-
Enh: Support for file aliases in console command 'message' (omnilight)
...
...
framework/base/ActionFilter.php
View file @
6944ca1f
...
@@ -51,6 +51,9 @@ class ActionFilter extends Behavior
...
@@ -51,6 +51,9 @@ class ActionFilter extends Behavior
{
{
if
(
$this
->
isActive
(
$event
->
action
))
{
if
(
$this
->
isActive
(
$event
->
action
))
{
$event
->
isValid
=
$this
->
beforeAction
(
$event
->
action
);
$event
->
isValid
=
$this
->
beforeAction
(
$event
->
action
);
if
(
!
$event
->
isValid
)
{
$event
->
handled
=
true
;
}
}
}
return
$event
->
isValid
;
return
$event
->
isValid
;
}
}
...
...
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