A trouble with assign new issue to user
RKVitaly opened this issue · comments
RKVitaly commented
RKVitaly commented
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.
Viktor commented
The same situation... what could be the reason?
Viktor commented
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>