Skip to content

Commit

Permalink
Merge pull request #2300 from bdonald25/fixManualEntry
Browse files Browse the repository at this point in the history
Fix "title already exists" bug
  • Loading branch information
bdonald25 committed Dec 4, 2015
2 parents a86910e + d040ee4 commit d563de0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/data_sets/editTable.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ class Grid
curr
, []
row.forEach (pair) ->
if pair[1] == null then pair[1] = ""
unless buckets[pair[0]]? then buckets[pair[0]] = []
buckets[pair[0]].push pair[1]

Expand Down
3 changes: 3 additions & 0 deletions test/integration/slickgrid_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def slickgrid_add_data(start, field_map)
# add data to the rows
slickgrid_add_data 0, field_map

# click restrictions but don't select one to see if it breaks things (bug #2298)
2.times { all('.slick-cell.l3.r3').last.click }

# save the dataset
find(:css, '#edit_table_save_1').click

Expand Down

0 comments on commit d563de0

Please sign in to comment.