Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
Use profile to fetch delivery options
%!v(PANIC=String method: strings: negative Repeat count)
diff --git a/plugins/delivery/controllers/myprofile/delivery_plugin/admin_options_controller.rb b/plugins/delivery/controllers/myprofile/delivery_plugin/admin_options_controller.rb index 5f96006af57b148566023434a1884bedf16fe3bb..aaeb5953184ac06ebcc3a434ded373f7d993b93f 100644 --- a/plugins/delivery/controllers/myprofile/delivery_plugin/admin_options_controller.rb +++ b/plugins/delivery/controllers/myprofile/delivery_plugin/admin_options_controller.rb @@ -25,7 +25,7 @@ end end def destroy - @delivery_option = @owner.delivery_options.find params[:id] + @delivery_option = profile.delivery_options.find params[:id] @delivery_option.destroy end