#718 open
Tom Locke

Lifecycle transitions with validation errors should not update the state field

Reported by Tom Locke | May 4th, 2010 @ 03:54 PM | in Hobo 1.1

At the moment they do. So the lifecycle ostensibly fails, but the record has entered the new state.

Workaround I needed in an app:

def do_activate
  do_transition_action :activate do
    this.update_attribute :state, 'inactive' unless valid?
  end
end

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages