Skip to content

Fix bugs with errors on update action in Return Authorizations #1340

Closed
wants to merge 1 commit into from

2 participants

@ademidov

NoMethodError raised when you do this steps:
1. Create return authorization for all products in order
2. Receive it
3. Click Update
3. You'll receive an error
undefined methodadmin_return_authorization_url'`
cause of :location => [:admin, @object] gives path without nesting (order/return_authorizations)

Second error is NoMethodError: undefined methodeach' for nil:NilClass`
It occurs when we update recieved Return Authorization because there's no fields 'return_quantity[]' in its edit form.

@radar radar added a commit that closed this pull request Apr 5, 2012
@ademidov ademidov Fix bugs with errors on update action
Fixes #1340
db43efa
@radar radar closed this in db43efa Apr 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.