Skip to content

Commit 57a491d

Browse files
fix(PortForward)!: remove sorting presets #835
Forcing objects to be sorted by interface for this model is unnecessary and in some cases could be problematic. The webConfigurator does not have this restriction therefor neither should the API.
1 parent 079d515 commit 57a491d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/PortForward.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class PortForward extends Model {
4646
$this->config_path = 'nat/rule';
4747
$this->many = true;
4848
$this->subsystem = 'natconf';
49-
$this->sort_by = ['interface'];
50-
$this->sort_order = SORT_ASC;
5149
$this->client = $options['client'] instanceof Auth ? $options['client'] : new Auth();
5250

5351
# Set model Fields

0 commit comments

Comments
 (0)