yandod / candycane

a port of Redmine to CakePHP from Ruby on Rails
http://my.candycane.jp
511 stars 127 forks source link

A trouble with assign new issue to user #277

Open RKVitaly opened 8 years ago

RKVitaly commented 8 years ago

"Assigned to" combobox is empty ( But several users was added in the project bug Thank you

RKVitaly commented 8 years ago

P.S. If I select existing category (each category assigned to one user), the issue will be assigned to category's user but I can not edit user, only category.

avemay commented 7 years ago

The same situation... what could be the reason?

avemay commented 7 years ago

A possible solution is to add the code: mysite.com\app\View\Elements\issues\attribute.ctp

<p>
    <?php echo $this->Form->label('assigned_to_id', __('Assigned to')); ?>
    <?php // echo $this->Form->input('assigned_to_id', array('type' => 'select', 'div' => false, 'label' => false, 'empty' => true, 'options' => $assignable_users)); ?>
    <?php
    foreach ($main_project['User'] as $project_user) {
        $project_members[$project_user['id']] = $project_user['firstname'].' '.$project_user['lastname'];
    }
    echo $this->Form->input('assigned_to_id', array('type' => 'select', 'div' => false, 'label' => false, 'empty' => false, 'options' => $project_members));
    ?>
</p>