Bug: can not delete risk classifications

on 3.13.1

1/ go to risk module on an empty db
2/ create a classification
3/ try deleting it

you get:

2022-06-09 12:07:22 error: [InvalidArgumentException] The RiskClassification behavior is not defined on App\Model\Table\RisksTable. in /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/ORM/Table.php on line 855
Stack Trace:

  • /data/demo-e2.eramba.org/eramba/app/upgrade/src/Model/Table/RiskClassificationsTable.php:131
  • /data/demo-e2.eramba.org/eramba/app/upgrade/src/Controller/RiskClassificationsController.php:171
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Controller/Controller.php:539
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:140
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:115
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/BaseApplication.php:317
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:77
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php:174
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php:129
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php:124
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:157
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/src/Routing/Middleware/RequestIdentifierMiddleware.php:34
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:161
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:68
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:126
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/plugins/Translations/src/Middleware/ActiveLanguageMiddleware.php:56
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/src/Application.php:328
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Middleware/ClosureDecoratorMiddleware.php:68
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/src/Middleware/MaintenanceMiddleware.php:28
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:73
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Runner.php:58
  • /data/demo-e2.eramba.org/eramba/app/upgrade/vendor/cakephp/cakephp/src/Http/Server.php:90
  • /data/demo-e2.eramba.org/eramba/app/upgrade/webroot/index.php:40

Request URL: /risk-classifications/delete/1?modalId=2&modalBreadcrumbs=1%7Cyjs-pair%7CRisk%2520Classifications&_=1654776416245
Referer URL: https://demo-e2.eramba.org/risks
Client IP: 172.21.255.84

github: https://github.com/eramba/eramba_v2/issues/3530
zendesk: https://eramba.zendesk.com/agent/tickets/16744

Glad it wasn’t just me then - I wrestled with this for a bit, and was actually able to delete it but I dont’ remember what I did to do it…