@@ -164,8 +164,7 @@ |
||
| 164 | 164 | if (static::ACTIVE) |
| 165 | 165 | { |
| 166 | 166 | $this->repository->findRow($id)->update(['active' => -1]); |
| 167 | - } |
|
| 168 | - else |
|
| 167 | + } else |
|
| 169 | 168 | { |
| 170 | 169 | $this->repository->findRow($id)->delete(); |
| 171 | 170 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | const PER_PAGE = [10 => '10', 20 => '20', 50 => '50', 100 => '100']; |
| 32 | 32 | const PER_PAGE_DEFAULT = 10; |
| 33 | 33 | |
| 34 | - const TEMPLATE_PATH = __DIR__. '/BaseListComponent.latte'; |
|
| 34 | + const TEMPLATE_PATH = __DIR__.'/BaseListComponent.latte'; |
|
| 35 | 35 | |
| 36 | 36 | /** @var array */ |
| 37 | 37 | protected $activeArray = []; |