Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
bug fix modul and module group controller for sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
fherryfherry committed Sep 24, 2016
1 parent 74a6f16 commit 7b6e9b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controllers/ModulsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public function __construct() {


$this->addaction = array();
$this->addaction[] = array('label'=>'Up','route'=>url(config('crudbooster.ADMIN_PATH')).'/cms_moduls/arr-sorting/%id%/up','icon'=>'fa fa-arrow-up','ajax'=>true);
$this->addaction[] = array('label'=>'Down','route'=>url(config('crudbooster.ADMIN_PATH')).'/cms_moduls/arr-sorting/%id%/down','icon'=>'fa fa-arrow-down','ajax'=>true);
$this->addaction[] = array('label'=>'Up','route'=>url(config('crudbooster.ADMIN_PATH')).'/cms_moduls/arr-sorting/[id]/up','icon'=>'fa fa-arrow-up','ajax'=>true);
$this->addaction[] = array('label'=>'Down','route'=>url(config('crudbooster.ADMIN_PATH')).'/cms_moduls/arr-sorting/[id]/down','icon'=>'fa fa-arrow-down','ajax'=>true);

$this->index_orderby = array("id_cms_moduls_group"=>"asc","sorting"=>"asc");

Expand Down
4 changes: 2 additions & 2 deletions src/controllers/ModulsGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public function __construct() {

$this->sub_module[] = array('label'=>'Modules','path'=>"cms_moduls","icon"=>"fa fa-cog","foreign_key"=>"id_cms_moduls_group");

$this->addaction[] = array('label'=>'Up','route'=>url(config('crudbooster.ADMIN_PATH')).'/module_generator/arr-sorting/%id%/up','icon'=>'fa fa-arrow-up','ajax'=>true);
$this->addaction[] = array('label'=>'Down','route'=>url(config('crudbooster.ADMIN_PATH')).'/module_generator/arr-sorting/%id%/down','icon'=>'fa fa-arrow-down','ajax'=>true);
$this->addaction[] = array('label'=>'Up','route'=>url(config('crudbooster.ADMIN_PATH')).'/module_generator/arr-sorting/[id]/up','icon'=>'fa fa-arrow-up','ajax'=>true);
$this->addaction[] = array('label'=>'Down','route'=>url(config('crudbooster.ADMIN_PATH')).'/module_generator/arr-sorting/[id]/down','icon'=>'fa fa-arrow-down','ajax'=>true);

$this->constructor();
}
Expand Down

0 comments on commit 7b6e9b8

Please sign in to comment.