diff --git a/src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_4.php b/src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_4.php index 6ad870ac0..38c5d9910 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_4.php +++ b/src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_4.php @@ -34,7 +34,7 @@ use OPNsense\Firewall\Category; use OPNsense\Firewall\Filter; use OPNsense\Firewall\Util; -// +// class MFP1_0_4 extends BaseModelMigration { @@ -83,10 +83,12 @@ class MFP1_0_4 extends BaseModelMigration $node->external = (string)$child->external; $node->source_net = $addr['source']; $node->destination_net = $addr['source']; - $node->source_not = !empty((string)$child->source->not) ? '1' : '0'; - $node->destination_not = !empty((string)$child->destination->not) ? '1' : '0'; - + $node->source_not = !empty((string)$child->source->not) ? '1' : '0'; + $node->destination_not = !empty((string)$child->destination->not) ? '1' : '0'; $node->description = (string)$child->descr; + if (!empty((string)$child->natreflection)) { + $node->natreflection = (string)$child->natreflection; + } } } }