Monviech / os-caddy-plugin

Caddy Plugin with GUI for OPNsense
Other
38 stars 0 forks source link

Migration Script for Description to description #119

Closed Monviech closed 5 months ago

Monviech commented 5 months ago

Using "Description" in the Model.xml is wrong. It has to be "description".

A migration has to be done, example: https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/Syslog/Migrations/M1_0_2.php

Description has to be lower case because it is referenced here: https://github.com/opnsense/core/blob/b01adb4a82abf9adcc36f3b637a08c2a5e7af395/src/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableModelControllerBase.php

I enabled "$internalModelUseSafeDelete", so that deletion is safe with references of UUIDs. The error message also shows the description. But not the "Description".