Merge pull request #3136 from Icinga/bugfix/sort-resources

/config/resource: sort resources by name
This commit is contained in:
lippserd 2018-01-15 09:33:17 +01:00 committed by GitHub
commit 02391e648b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -310,7 +310,10 @@ class ConfigController extends Controller
public function resourceAction() public function resourceAction()
{ {
$this->assertPermission('config/application/resources'); $this->assertPermission('config/application/resources');
$this->view->resources = Config::app('resources', true); $this->view->resources = Config::app('resources', true)->getConfigObject()
->setKeyColumn('name')
->select()
->order('name');
$this->createApplicationTabs()->activate('resource'); $this->createApplicationTabs()->activate('resource');
} }