projects
/
epnadmin
/
epnadmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7416bc1
)
TYPO
author
ldayot
<ldayot@epnadmin.net>
Thu, 6 Sep 2012 16:31:14 +0000
(18:31 +0200)
committer
ldayot
<ldayot@epnadmin.net>
Thu, 6 Sep 2012 16:31:14 +0000
(18:31 +0200)
src/Epnadmin/CoreBundle/Entity/Resource.php
patch
|
blob
|
history
diff --git
a/src/Epnadmin/CoreBundle/Entity/Resource.php
b/src/Epnadmin/CoreBundle/Entity/Resource.php
index
0a027d6
..
fe2c9c8
100644
(file)
--- a/
src/Epnadmin/CoreBundle/Entity/Resource.php
+++ b/
src/Epnadmin/CoreBundle/Entity/Resource.php
@@
-131,8
+131,8
@@
abstract class Resource
{
$list = array();
$list[ $resource->getId() ] = str_repeat(". ", $level). $resource->getName();
- if (count($child
er
n = $resource->getChildren())) {
- foreach ($child
er
n as $child) {
+ if (count($child
re
n = $resource->getChildren())) {
+ foreach ($child
re
n as $child) {
$list = $list + self::returnChoice($child, $level+1);
}
}
@@
-146,6
+146,7
@@
abstract class Resource
array('status'=>self::STATUS_ACTIVE,'parent'=>null),
array('name'=>'ASC')
);
+
foreach($resources as $resource)
{
$list = $list + self::returnChoice($resource);