diff --git a/views/ticket/_advanced_form.php b/views/ticket/_advanced_form.php index d148e57..7c18664 100644 --- a/views/ticket/_advanced_form.php +++ b/views/ticket/_advanced_form.php @@ -14,9 +14,15 @@ 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 ]); ?>