Skip to content

Commit

Permalink
Responsible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Sep 4, 2015
1 parent 08603c1 commit bb7f974
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function rules()
'topics',
'state',
'priority',
'responsible_id',
'responsible',
'recipient_id',
'watchers',
'spent', 'spent_hours',
Expand All @@ -142,7 +142,7 @@ public function rules()
[
'id', 'message',
'topics', 'state', 'priority',
'responsible_id', 'recipient_id',
'responsible', 'recipient_id',
'watchers', 'add_watchers', 'del_watchers',
'is_private',
'file_ids',
Expand Down
8 changes: 4 additions & 4 deletions src/views/ticket/_advanced_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<?php if ($model->isNewRecord) : ?>
<?php $model->responsible_id = Yii::$app->user->id; ?>
<!-- Responsible -->
<?= $form->field($model, 'responsible_id')->widget(ClientCombo::classname(), [
<?= $form->field($model, 'responsible')->widget(ClientCombo::classname(), [
'clientType' => ['manager', 'admin', 'owner'],
]); ?>
<?php else : ?>
Expand All @@ -86,8 +86,8 @@
<span class="badge">
<?= ComboXEditable::widget([
'model' => $model,
'attribute' => 'responsible_id',
'value' => [['id' => $model->responsible_id, 'text' => $model->responsible]],
'attribute' => 'responsible',
// 'value' => [['id' => $model->responsible_id, 'text' => $model->responsible]],
'combo' => [
'class' => ClientCombo::className(),
'clientType' => ['manager', 'admin', 'owner'],
Expand All @@ -105,7 +105,7 @@
],
]); ?>
</span>
<?= $model->getAttributeLabel('responsible_id'); ?>
<?= $model->getAttributeLabel('responsible'); ?>
</li>
</ul>

Expand Down

0 comments on commit bb7f974

Please sign in to comment.