mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
Firewall/alias, finish migration for https://github.com/opnsense/core/issues/1858
This commit is contained in:
parent
3c0746d90b
commit
62878b3535
@ -76,8 +76,16 @@ class M1_0_0 extends BaseModelMigration
|
||||
$node->proto = (string)$alias->proto;
|
||||
}
|
||||
}
|
||||
// cleanup old config
|
||||
//unset($cfgObj->aliases);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* cleanup old config after config save, we need the old data to avoid race conditions in validations
|
||||
* @param $model
|
||||
*/
|
||||
public function post($model)
|
||||
{
|
||||
$cfgObj = Config::getInstance()->object();
|
||||
unset($cfgObj->aliases);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user