Project

General

Profile

Revision 31e5a925

Added by Ori Rabin over 6 years ago

Fixes #13231 - error processing uses full_messages

View differences:

app/controllers/containers/steps_controller.rb
58 58
      else
59 59
        @docker_container_wizard_states_environment = @state.environment
60 60
        process_error(
61
          :error_msg => service.errors.full_messages.join(','),
62
          :object => @state.environment,
63
          :render => 'environment')
61
          :redirect => containers_path,
62
          :error_msg => service.full_messages.join(','),
63
          :object => @state.environment)
64 64
      end
65 65
    end
66 66
  end
app/models/service/containers.rb
93 93
    end
94 94

  
95 95
    def full_messages
96
      @errors.respond_to?(:full_messages) ? @errors.full_messages : @errors
96
      errors.respond_to?(:full_messages) ? errors.full_messages : errors
97 97
    end
98 98

  
99 99
    def run_container(container)

Also available in: Unified diff