Commit 4c1926d
committed
fix(RESTAPISettings): don't init models in choices callable #764
This commit addresses an issue where loading the RESTAPISettings `override_sensitive_fields` choices would loop through all model classes and allowed initialization of certain models, which could cause unexpected errors on Form pages. Going forward this callable will no longer allow models to automatically initialize.1 parent 510fb47 commit 4c1926d
File tree
1 file changed
+1
-1
lines changed- pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments