add_use_field_for status

This commit is contained in:
SoHardKI committed 2019-07-02 16:51:33 +03:00
1 parent 39c7f052ee
commit 3142b2f548
4 files changed
+25 -4

No files matched your search

+3 -2
View File
@@ -76,8 +76,9 @@ class UseStatus extends \yii\db\ActiveRecord
/**
* @return string status text label
*/
public function getStatusesText()
public static function getStatusesText($id)
{
return $this->statuses[$this->status_id];
$model = new self();
return $model->statuses[$id];
}
}