Navigation Menu

Skip to content

Commit

Permalink
Fixes #2544 - Can't remove auto assignment timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfschmidt authored and thorsteneckel committed Aug 24, 2021
1 parent f862f7a commit 60a3758
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Expand Up @@ -510,7 +510,7 @@ class App.ControllerForm extends App.Controller
value = false
if item.type is 'integer'
if value is ''
value = undefined
value = null
else
value = parseInt(value)
if param[item.name] isnt undefined
Expand Down
18 changes: 18 additions & 0 deletions spec/system/manage/groups_spec.rb
Expand Up @@ -7,4 +7,22 @@
context 'ajax pagination' do
include_examples 'pagination', model: :group, klass: Group, path: 'manage/groups'
end

context "Issue 2544 - Can't remove auto assignment timeout" do
before do
visit '/#manage/groups'
end

it 'is possible to reset the assignment timeout of a group' do
find('td', text: 'Users').click
fill_in 'Assignment Timeout', with: '30'
find('button', text: 'Submit').click
expect(Group.find_by(name: 'Users').assignment_timeout).to eq(30)

find('td', text: 'Users').click
fill_in 'Assignment Timeout', with: ''
find('button', text: 'Submit').click
expect(Group.find_by(name: 'Users').assignment_timeout).to be nil
end
end
end

0 comments on commit 60a3758

Please sign in to comment.