yandod / candycane

a port of Redmine to CakePHP from Ruby on Rails

Home Page:http://my.candycane.jp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A trouble with assign new issue to user

RKVitaly opened this issue · comments

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

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.

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

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>