diff options
| author | Zog | 2018-02-27 08:26:40 +0100 |
|---|---|---|
| committer | Zog | 2018-02-27 08:27:12 +0100 |
| commit | 1b0d2b5c591e9b4a5b56ae6f133cd93cc033f765 (patch) | |
| tree | d2a8c46c25541d65630e2be1eceb2955c33520dc /app/controllers | |
| parent | 206bf218e1b84dbe53683ec2e3f983cd30f7ded1 (diff) | |
| download | chouette-core-5940-add-missing-flash.tar.bz2 | |
Refs #5940; Add missing flash after Calendar creation5940-add-missing-flash
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/calendars_controller.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb index 75d4cbd09..cc7570d65 100644 --- a/app/controllers/calendars_controller.rb +++ b/app/controllers/calendars_controller.rb @@ -31,10 +31,11 @@ class CalendarsController < ChouetteController end def create - create! do - if @calendar.valid? && has_feature?('application_days_on_calendars') - redirect_to([:edit, @calendar]) - return + create! do |success, failure| + if has_feature?('application_days_on_calendars') + success.html do + redirect_to([:edit, @workgroup, @calendar]) + end end end end @@ -125,4 +126,4 @@ class CalendarsController < ChouetteController scope end -end
\ No newline at end of file +end |
