Fixed creating/updating with MeasurementRoutine
Updated Measurement links with :view
This commit is contained in:
@@ -31,10 +31,10 @@ module MeasurementsHelper
|
||||
end
|
||||
end
|
||||
|
||||
def action_links(m)
|
||||
link_to(l(:button_retake), retake_measurement_path(m),
|
||||
def action_links(m, view)
|
||||
link_to(l(:button_retake), retake_measurement_path(m, view: view),
|
||||
{remote: true, class: "icon icon-reload"}) +
|
||||
link_to(l(:button_edit), edit_measurement_path(m),
|
||||
link_to(l(:button_edit), edit_measurement_path(m, view: view),
|
||||
{remote: true, class: "icon icon-edit"}) +
|
||||
delete_link(measurement_path(m), {remote: true, data: {}})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user