app/views/collections/_form.html.erb in iqvoc-4.11.1 vs app/views/collections/_form.html.erb in iqvoc-4.12.0
- old
+ new
@@ -48,9 +48,9 @@
</fieldset>
<hr />
<div class="well">
<%= f.submit t("txt.common.save"), :class => "btn btn-primary" %>
- <%= link_to t("txt.common.cancel"), collection_path(collection, :published => 0), :class => "btn btn-default" %>
+ <%= link_to t("txt.common.cancel"), collection.new_record? ? dashboard_path : collection_path(collection, :published => 0), :class => "btn btn-default" %>
</div>
<% end %>