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
7ba770eb
Commit
7ba770eb
authored
Oct 10, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5408: Gii console command incorrectly reports errors when there is actually no error
parent
9c359d14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
CHANGELOG.md
extensions/gii/CHANGELOG.md
+1
-0
Generator.php
extensions/gii/Generator.php
+1
-1
DefaultController.php
extensions/gii/controllers/DefaultController.php
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
No files found.
extensions/gii/CHANGELOG.md
View file @
7ba770eb
...
...
@@ -4,6 +4,7 @@ Yii Framework 2 gii extension Change Log
2.
0.0 under development
-----------------------
-
Bug #5408: Gii console command incorrectly reports errors when there is actually no error (qiangxue)
-
Bug: Fixed table name regression caused by changed introduced in #4971 (samdark)
...
...
extensions/gii/Generator.php
View file @
7ba770eb
...
...
@@ -262,7 +262,7 @@ abstract class Generator extends Model
* @param array $answers
* @param string $results this parameter receives a value from this method indicating the log messages
* generated while saving the code files.
* @return boolean whether
there is any error while saving the code files
.
* @return boolean whether
files are successfully saved without any error
.
*/
public
function
save
(
$files
,
$answers
,
&
$results
)
{
...
...
extensions/gii/controllers/DefaultController.php
View file @
7ba770eb
...
...
@@ -44,7 +44,7 @@ class DefaultController extends Controller
$generator
->
saveStickyAttributes
();
$files
=
$generator
->
generate
();
if
(
isset
(
$_POST
[
'generate'
])
&&
!
empty
(
$_POST
[
'answers'
]))
{
$params
[
'hasError'
]
=
$generator
->
save
(
$files
,
(
array
)
$_POST
[
'answers'
],
$results
);
$params
[
'hasError'
]
=
!
$generator
->
save
(
$files
,
(
array
)
$_POST
[
'answers'
],
$results
);
$params
[
'results'
]
=
$results
;
}
else
{
$params
[
'files'
]
=
$files
;
...
...
framework/CHANGELOG.md
View file @
7ba770eb
...
...
@@ -13,6 +13,7 @@ Yii Framework 2 Change Log
-
Bug #5323: Nested dropdown does not work for
`yii\bootstrap\DropDown`
(aryraditya)
-
Bug #5336:
`yii\bootstrap\DropDown`
should register bootstrap plugin asset (zelenin)
-
Bug #5379:
`Module::afterAction()`
was called even when
`beforeAction()`
returned false (cebe)
-
Bug #5408: Gii console command incorrectly reports errors when there is actually no error (qiangxue)
-
Bug #5423:
`yii\behaviors\Cors`
causes "undefined index" error when its
`cors`
is configured (qiangxue)
-
Bug #5424:
`Html::addCssStyle()`
wasn't correctly setting style passed in array (kartik-v, samdark)
-
Bug #5435: Added extra checks to
`yii\rbac\DbManager`
to prevent database exceptions when
`$userId`
is empty (samdark)
...
...
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