Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit 17cd105

Browse files
author
Christoph Möke
committed
Fixed plugin initialization
1 parent f0be3c1 commit 17cd105

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Select2.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public function beforeRun()
4848
}
4949

5050
public function run() {
51+
$this->registerPlugin();
52+
5153
if ($this->hasModel()) {
5254
return Html::activeDropDownList($this->model, $this->attribute, $this->items, $this->options);
5355
} else {
5456
return Html::dropDownList($this->name, $this->value, $this->items, $this->options);
5557
}
56-
57-
$this->registerPlugin();
5858
}
5959

6060
protected function registerPlugin()

0 commit comments

Comments
 (0)