Error when creating SLA or Ticket that belongs to an SLA, after update to 5.0.2

  • Used Zammad version: 5.0.2
  • Used Zammad installation type: package
  • Operating system: debian 10
  • Browser + version: Chrome 95

Expected behavior:

  • Moving Tickets to groups, which have an SLA or create new SLA

Actual behavior:

  • Creating new SLA or moving tickets to groups, which have SLA, fails with the following error:

undefined local variable or method `response_time’ for #Sla:0x00007f3fa01e2120 Did you mean? respond_to?

Steps to reproduce the behavior:

  • Create an new simple SLA with the standard settings (state = open, response time = xx:xx, calendar = default calender)

I’ve take a look at the production log. The parameters send from the “create sla”-function are as follows:

Parameters: {“name”=>“Test-SLA”, “first_response_time”=>“720”, “response_time”=>"", “update_time”=>“720”, “solution_time”=>“720”, “condition”=>{“ticket.state_id”=>{“operator”=>“is”, “value”=>“2”}}, “calendar_id”=>“1”, “id”=>“c-7”}

In the database, there is no column “response_time” in the table “slas”, i think there is the error.

Upgrade from 5.0.2-1636732214.a9b57e57.buster to 5.0.2-1637576537.10be8dab.buster fixes the issue.