access_hubs#destroy (ActiveRecord::RecordInvalid) "Validation failed: Access hub must have at l...

An ActiveRecord::RecordInvalid occurred in access_hubs#destroy:

 Validation failed: Access hub must have at least one supported card model, Name can't be blank, Access hub mode can't be blank, Access zone can't be blank, Location can't be blank
 app/services/access_hubs/delete_sip_account_service.rb:18:in `call'


-------------------------------
Request:
-------------------------------

 * URL        : https://www.bikelink.org/access_hubs/55
 * HTTP Method: DELETE
 * IP address : 94.142.239.82
 * Parameters : {"_method"=>"delete", "authenticity_token"=>"[FILTERED]", "controller"=>"access_hubs", "action"=>"destroy", "id"=>"55"}
 * Timestamp  : 2024-03-11 17:24:29 UTC
 * Server : www-8.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 243821

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"0fefa15e1f3d71deaa00f5f5790688b3",
  "warden.user.person.key"=>[[3142], "_Nou9U29jHTmGfhBBee9"],
  "_csrf_token"=>"ALECz2RLd5aeEhFnqhCFyPpwEpMaJOdZ9dOQyLdQ56Y="}

-------------------------------
Backtrace:
-------------------------------

 app/services/access_hubs/delete_sip_account_service.rb:18:in `call'
 app/controllers/access_hubs_controller.rb:60:in `destroy'
 app/controllers/application_controller.rb:45:in `process_action'

Znovu načítať