Skip to content

Commit

Permalink
StaticCombo call update
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 15, 2015
1 parent 523831b commit bbb15c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions views/ticket/_advanced_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
<?php if ($model->isNewRecord)
$model->topics = 'general';
else
$model->topics = array_keys($model->topics);
$model->topics = implode(',', array_keys($model->topics));
print $form->field($model, 'topics')->widget(StaticCombo::className(), [
'data' => array_merge(["" => ""], $topic_data)
'pluginOptions' => [
'select2Options' => [
'multiple' => true,
'tags' => true,
]
],
'data' => $topic_data
]); ?>
<div class="row">
<div class="col-md-6">
Expand All @@ -25,7 +31,7 @@
if ($model->isNewRecord)
$model->state = 'opened';
print $form->field($model, 'state')->widget(StaticCombo::classname(), [
'data' => array_merge(["" => ""], $state_data),
'data' => $state_data,
]); ?>
</div>
<div class="col-md-6">
Expand All @@ -34,7 +40,7 @@
if ($model->isNewRecord)
$model->priority = 'medium';
print $form->field($model, 'priority')->widget(StaticCombo::classname(), [
'data' => array_merge(["" => ""], $priority_data),
'data' => $priority_data,
]); ?>
</div>
</div>
Expand Down

0 comments on commit bbb15c4

Please sign in to comment.