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
e8b674dc
Commit
e8b674dc
authored
Jan 05, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not unset class properties!
this will result in objects that do not have the property anymore :-)
parent
2f8f64cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
Item.php
framework/yii/rbac/Item.php
+1
-1
View.php
framework/yii/web/View.php
+6
-8
No files found.
framework/yii/rbac/Item.php
View file @
e8b674dc
...
@@ -199,6 +199,6 @@ class Item extends Object
...
@@ -199,6 +199,6 @@ class Item extends Object
public
function
save
()
public
function
save
()
{
{
$this
->
manager
->
saveItem
(
$this
,
$this
->
_oldName
);
$this
->
manager
->
saveItem
(
$this
,
$this
->
_oldName
);
unset
(
$this
->
_oldName
)
;
$this
->
_oldName
=
null
;
}
}
}
}
framework/yii/web/View.php
View file @
e8b674dc
...
@@ -163,14 +163,12 @@ class View extends \yii\base\View
...
@@ -163,14 +163,12 @@ class View extends \yii\base\View
self
::
PH_BODY_END
=>
$this
->
renderBodyEndHtml
(),
self
::
PH_BODY_END
=>
$this
->
renderBodyEndHtml
(),
]);
]);
unset
(
$this
->
metaTags
=
null
;
$this
->
metaTags
,
$this
->
linkTags
=
null
;
$this
->
linkTags
,
$this
->
css
=
null
;
$this
->
css
,
$this
->
cssFiles
=
null
;
$this
->
cssFiles
,
$this
->
js
=
null
;
$this
->
js
,
$this
->
jsFiles
=
null
;
$this
->
jsFiles
);
}
}
/**
/**
...
...
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