Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Mar 22, 2016
1 parent 051a298 commit bb9efc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions models/MeritTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public static function getRuleKeys()

public static function getTypes()
{
return Module::getInstance()->types;
/** @var Module $merit */
$merit = Yii::$app->getModule('merit');
return $merit->types;
}

public static function getStatuses()
Expand All @@ -144,4 +146,4 @@ public static function getStatuses()
self::STATUS_DELETE => '停用',
];
}
}
}

0 comments on commit bb9efc8

Please sign in to comment.