You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the module with the default configuration and found an error while accessing the proposal component page on the admin page. The error backtrace is the one below:
ActionView::Template::Error (nil can't be converted to a Time value):
<% elsif proposal.accepted? || proposal.rejected? %>
<div class="help-text-overdue text-success">
<%= t("decidim.reporting_proposals.admin.resolution_time") %>:
<%= time_elapsed_to_answer(proposal) %>
</div>
<% end %>
</div>
I analyzed it and found out the component has a rejected proposal, but that proposal doesn't have a value for the answered_at column used in the time_elapsed_to_answer method. So it's causing this error as you call the distance_of_time_in_words with a nil value.
I installed the module with the default configuration and found an error while accessing the proposal component page on the admin page. The error backtrace is the one below:
I analyzed it and found out the component has a rejected proposal, but that proposal doesn't have a value for the
answered_at
column used in thetime_elapsed_to_answer
method. So it's causing this error as you call thedistance_of_time_in_words
with a nil value.Maybe we should change from:
to:
Or use another attribute, as
answered_at
could be nil on rejected proposals.The text was updated successfully, but these errors were encountered: