Skip to content

Commit 0856ab9

Browse files
fix: use replace strategy when updating RoutingGatewayGroupPriority objects #707
The 'merge' strategy does not work for this model because it's internal representation is a pipe delimited string instead of an array like usual. We must use 'replace' instead to ensure the entire object gets written correctly.
1 parent 378b604 commit 0856ab9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class RoutingGatewayGroupPriority extends Model {
2222
$this->parent_model_class = 'RoutingGatewayGroup';
2323
$this->config_path = 'item';
2424
$this->subsystem = 'staticroutes';
25+
$this->update_strategy = 'replace';
2526
$this->many = true;
2627
$this->many_minimum = 1;
2728

0 commit comments

Comments
 (0)