Files
nairobi/app/models
Javi Martín 2926e4e375 Fix managing widget cards for homepage
The condition `params[:page_id] != 0` didn't work properly when editing
the homepage because in that case the parameter was `nil`, and the line
`SiteCustomization::Page.find(@card.site_customization_page_id)` raised
an exception because it couldn't find a page with a `nil` ID.

Fixing the issue while maintaining the check against `0` lead to complex
code, and so allowing `nil` in the database and assuming cards with no
`site_customization_page_id` belonged in the homepage seemed to be the
easiest solution.
2019-01-21 10:40:14 -05:00
..
2018-09-12 12:35:28 +02:00
2018-11-23 18:15:47 +01:00
2015-07-15 13:32:13 +02:00
2017-11-17 13:14:03 -04:00
2017-07-25 13:01:03 +02:00
2016-01-26 18:10:47 +01:00
2016-11-23 19:19:19 +01:00
2016-05-10 18:31:50 +02:00
2018-12-05 14:31:58 +01:00
2017-04-06 16:25:07 +02:00
2018-04-04 13:19:01 +02:00
2015-08-08 12:56:41 +02:00
2017-12-15 19:21:02 +01:00