- system alias no longer persists after system delete

- reset some character table columns on corp change or character sold
This commit is contained in:
Exodus4D
2017-05-28 15:00:00 +02:00
parent f126e07fdb
commit 398615cc5c
4 changed files with 31 additions and 6 deletions

View File

@@ -429,10 +429,7 @@ class System extends Controller\AccessController {
foreach($systemIds as $systemId){
if( $system = $map->getSystemById($systemId) ){
// check whether system should be deleted OR set "inactive"
if(
!empty($system->description) ||
( !empty($system->alias) && ($system->alias != $system->name) )
){
if( !empty($system->description) ){
// keep data -> set "inactive"
$system->setActive(false);
$system->save();