google-code-export / yii-user

Automatically exported from code.google.com/p/yii-user
1 stars 1 forks source link

error #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to create new field in the profile.

What is the expected output? What do you see instead?
Yii show an error "Undefined variable: list" in the file:

H:\mowes_portable\www\lw1\protected\modules\user\views\profileField\_menu.p
hp(5)

00001: <ul class="actions">
00002:     <li><?php echo CHtml::link(UserModule::t('Manage 
User'),array('/user/admin')); ?></li>
00003:     <li><?php echo CHtml::link(UserModule::t('Manage Profile 
Field'),array('admin')); ?></li>
00004: <?php 
00005:     if (count($list)) {
00006:         foreach ($list as $item)
00007:             echo "<li>".$item."</li>";
00008:     }
00009: ?>
00010: </ul><!-- actions -->

What version of the product are you using? On what operating system?
yii-user-0.2-r43

Please provide any additional information below.
I just changed line
<?php echo $this->renderPartial('_menu'); ?>
to
<?php echo $this->renderPartial('_menu', array('list'=>array())); ?>
in the file "\user\views\profileField\create.php" to fix this.

Original issue reported on code.google.com by gpm.grif...@gmail.com on 21 May 2010 at 8:47

GoogleCodeExporter commented 9 years ago
or if (isset($list) && count($list)) in _menu

Original comment by roman...@gmail.com on 25 May 2010 at 6:15

GoogleCodeExporter commented 9 years ago
fixed r48

Original comment by mish...@gmail.com on 29 Jun 2010 at 12:44