Commit c95e09837e6306dfdf4f6e9d2ca72f0e47e5f6df
Committed by
Rodrigo Souto
1 parent
af45a1f8
Exists in
master
and in
12 other branches
fixed bug does not recover saved published date
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/cms/_text_fields.html.erb
1 | -<%= labelled_form_field(_('Publish date'), date_field('article[published_at]', DateTime.current, '%Y-%m-%d', {:max_date => '+0d', :date_format => 'yy-mm-dd'}, {:id => "article_published_at"})) %> | |
1 | +<%= labelled_form_field(_('Publish date'), date_field('article[published_at]', @article.published_at || DateTime.current, '%Y-%m-%d', {:max_date => '+0d', :date_format => 'yy-mm-dd'}, {:id => "article_published_at"})) %> | ... | ... |