Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Nov 17, 2019
1 parent acace77 commit 6e8d2ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 29 deletions.
21 changes: 19 additions & 2 deletions src/controllers/AdminMeasureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function init()
*/
public function actions()
{
return ArrayHelper::merge(parent::actions(),
[
return ArrayHelper::merge(parent::actions(), [
'index' => [
'filters' => [
'visibleFilters' => [
Expand Down Expand Up @@ -87,6 +86,14 @@ public function actions()
"eachCallback" => [$this, 'eachMultiDef'],
"priority" => 0,
],

"create" => [
'fields' => [$this, 'updateFields'],
],

"update" => [
'fields' => [$this, 'updateFields'],
],
]
);
}
Expand All @@ -107,4 +114,14 @@ public function eachMultiDef($model, $action)
}
}

public function updateFields() {
return [
'code',
'name',
'symbol_rus',
'symbol_intl',
'symbol_letter_intl',
];
}

}
27 changes: 0 additions & 27 deletions src/views/admin-measure/_form.php

This file was deleted.

0 comments on commit 6e8d2ae

Please sign in to comment.