File tree Expand file tree Collapse file tree
pfSense-pkg-API/files/etc/inc/api/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -667,12 +667,12 @@ class APIInterfaceCreate extends APIModel {
667667 $ track_prefix = $ this ->initial_data ["track6-prefix-id-hex " ];
668668 // Check that our gateway is a valid IPv4 address
669669 if (is_numeric ($ track_prefix ) and ctype_xdigit (strval ($ track_prefix ))) {
670- $ this ->validated_data ["track6-prefix-id--hex " ] = intval ($ track_prefix );
670+ $ this ->validated_data ["track6-prefix-id " ] = intval ($ track_prefix );
671671 } else {
672672 $ this ->errors [] = APIResponse \get (3040 );
673673 }
674674 } else {
675- $ this ->validated_data ["track6-prefix-id--hex " ] = 0 ;
675+ $ this ->validated_data ["track6-prefix-id " ] = 0 ;
676676 }
677677 }
678678
Original file line number Diff line number Diff line change @@ -775,12 +775,12 @@ class APIInterfaceUpdate extends APIModel {
775775 $ track_prefix = $ this ->initial_data ["track6-prefix-id-hex " ];
776776 // Check that our gateway is a valid IPv4 address
777777 if (is_numeric ($ track_prefix ) and ctype_xdigit (strval ($ track_prefix ))) {
778- $ this ->validated_data ["track6-prefix-id--hex " ] = intval ($ track_prefix );
778+ $ this ->validated_data ["track6-prefix-id " ] = intval ($ track_prefix );
779779 } else {
780780 $ this ->errors [] = APIResponse \get (3040 );
781781 }
782- } elseif (!isset ($ this ->validated_data ["track6-prefix-id--hex " ])) {
783- $ this ->validated_data ["track6-prefix-id--hex " ] = 0 ;
782+ } elseif (!isset ($ this ->validated_data ["track6-prefix-id " ])) {
783+ $ this ->validated_data ["track6-prefix-id " ] = 0 ;
784784 }
785785 }
786786
You can’t perform that action at this time.
0 commit comments