Commit 61044cca351627f06bab3c27c7db6bdd48c11f77
1 parent
ee0a5c0f
Exists in
staging
and in
4 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"})) %> | ... | ... |