------------------------------------------------------------
revno: 1207
committer: Jakub Jankiewicz <[email protected]>
branch nick: aikiframework
timestamp: Thu 2012-05-31 18:38:17 +0200
message:
Fix bug #1006828
modified:
libs/widgets.php
--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk
Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/widgets.php'
--- libs/widgets.php 2012-05-29 13:07:53 +0000
+++ libs/widgets.php 2012-05-31 16:38:17 +0000
@@ -275,12 +275,14 @@
}
// and now the children
- $childrens = $aiki->widgets->get_candidate_widgets($widget->id);
- if (!is_null($childrens)){
- foreach ($childrens as $children) {
- $this->render_widget($engine,$children,$level+1);
- }
- }
+ if ($widget->is_father) {
+ $childrens = $aiki->widgets->get_candidate_widgets($widget->id);
+ if (!is_null($childrens)){
+ foreach ($childrens as $children) {
+ $this->render_widget($engine,$children,$level+1);
+ }
+ }
+ }
if (is_array($content)) {
$engine->target[$widget->widget_target][] =
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp