mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +00:00
f0e32a035d
The compaitibility for backends that don't support comments broke the normal deletion of comments. This is fixed by limiting the compaitibility to when we don't know for certain whether the backend of that zone supports comments or not. This is done by checking if the zone currently contains any comments: If it does, the backend definitly supports comment; if it doesn't, we don't know and have to assume it doesn't. The check is done by the "modified_at" attribute, because this only exists on persistent comments from pdns and not on the "fill-up" comments that PDA adds. Luckily this also works perfectly for the deletion case, because to delete a comment it had to already exist previously. Fixes #1516 |
||
---|---|---|
.. | ||
lib | ||
models | ||
routes | ||
services | ||
static | ||
templates | ||
__init__.py | ||
assets.py | ||
decorators.py | ||
default_config.py | ||
swagger-spec.yaml |