Commit ac58870eb1338972cf97b8d6fa0494154f0cb1f0
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'hotfixes' into stable
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/block.rb
... | ... | @@ -230,7 +230,7 @@ class Block < ActiveRecord::Base |
230 | 230 | duplicated_block.created_at = nil |
231 | 231 | duplicated_block.updated_at = nil |
232 | 232 | duplicated_block.save! |
233 | - duplicated_block.insert_at(self.position + 1) | |
233 | + duplicated_block.insert_at((self.position || 0) + 1) | |
234 | 234 | duplicated_block |
235 | 235 | end |
236 | 236 | ... | ... |