app/helpers/decidim/budgets/projects_helper.rb in decidim-budgets-0.28.4 vs app/helpers/decidim/budgets/projects_helper.rb in decidim-budgets-0.29.0.rc1

- old
+ new

@@ -44,11 +44,11 @@ current_order&.can_checkout? end # Returns false if the current order does not have a rule for minimum budget # Returns false if the current order has not reached the minimum budget - # Otherwhise returns true + # Otherwise returns true def current_order_minimum_reached? return false if current_order.minimum_budget.zero? current_order.total > current_order.minimum_budget end @@ -112,10 +112,10 @@ def project_data_for_map(project) project .slice(:latitude, :longitude, :address) .merge( - title: decidim_html_escape(translated_attribute(project.title)), + title: decidim_escape_translated(project.title), link: ::Decidim::ResourceLocatorPresenter.new([project.budget, project]).path, items: cell("decidim/budgets/project_metadata", project).send(:project_items_for_map).to_json ) end