Commit 46b3891dffed6936f29a45a0d604fea8ad3d3241
Committed by
Paulo Meireles
1 parent
d3cf2f05
Exists in
master
and in
29 other branches
[Mezuro] alerting error in javascript creation.
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
plugins/mezuro/controllers/myprofile/mezuro_plugin_range_controller.rb
@@ -27,7 +27,8 @@ class MezuroPluginRangeController < MezuroPluginMyprofileController | @@ -27,7 +27,8 @@ class MezuroPluginRangeController < MezuroPluginMyprofileController | ||
27 | metric_configuration.add_range(@range) | 27 | metric_configuration.add_range(@range) |
28 | metric_configuration.save | 28 | metric_configuration.save |
29 | if metric_configuration_has_errors? metric_configuration | 29 | if metric_configuration_has_errors? metric_configuration |
30 | - redirect_to_error_page metric_configuration.errors[0].message | 30 | + @error = metric_configuration.errors[0].message |
31 | + #redirect_to_error_page metric_configuration.errors[0].message | ||
31 | end | 32 | end |
32 | end | 33 | end |
33 | 34 |
plugins/mezuro/views/mezuro_plugin_range/create_range.rjs