Commit 5e3d54c17a1c11bba63138102d531e845ab5b1c0
Committed by
Antonio Terceiro
1 parent
d2293794
Exists in
master
and in
22 other branches
ActionItem1049: adding to_i in article_bloc
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/article_block.rb
@@ -17,7 +17,7 @@ class ArticleBlock < Block | @@ -17,7 +17,7 @@ class ArticleBlock < Block | ||
17 | end | 17 | end |
18 | 18 | ||
19 | def article_id= value | 19 | def article_id= value |
20 | - self.settings[:article_id] = value | 20 | + self.settings[:article_id] = value.to_i |
21 | end | 21 | end |
22 | 22 | ||
23 | def article(reload = false) | 23 | def article(reload = false) |