Browse Source

AdminController : setPosition on persist

reduction
Guillaume 4 years ago
parent
commit
273b325a30
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      ShopBundle/Controller/Admin/AdminController.php

+ 4
- 1
ShopBundle/Controller/Admin/AdminController.php View File

} }


$this->setUpdated($entity) ; $this->setUpdated($entity) ;
$entity->setPosition(0) ;

if (method_exists($entity, 'setPosition')) {
$entity->setPosition(0) ;
}


parent::persistEntity($entity); parent::persistEntity($entity);
} }

Loading…
Cancel
Save