Skip to content

Commit

Permalink
Fix for tab status when no start_step is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsdre committed Oct 20, 2015
1 parent 48e1a59 commit adea99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WizardWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function run() {
foreach ($this->steps as $id => $step) {

// Current or fist step is active, next steps are inactive (previous steps are available)
if ($id == $this->start_step or is_null($this->start_step)) {
if ($id == $this->start_step or (is_null($this->start_step) && $class == '')) {
$class = 'active';
} elseif ($class == 'active') {
$class = 'disabled';
Expand Down

0 comments on commit adea99c

Please sign in to comment.