Git Product home page Git Product logo

Comments (7)

kennyadsl avatar kennyadsl commented on June 1, 2024 1

Thanks for reporting. I think the issue is here: 6db4f52#r1383302271. We tried and by removing the .distinctcall the error disappear.

cc @softr8

This might be a good first contribution if anyone is interested.

from solidus.

kennyadsl avatar kennyadsl commented on June 1, 2024 1

@FranciscoJBrito yes!

from solidus.

vokshirg avatar vokshirg commented on June 1, 2024

Temp Hotfix for anybody else

# app/overrides/hairdom/controllers/spree/admin/stock_items_controller/fix_search.rb
module Hairdom
  module Spree
    module Admin
      module StockItemsController
        module FixSearch
          def variant_scope
            scope = ::Spree::Variant
                      .accessible_by(current_ability)
                      .order(:sku)
                      .includes(
                        :images,
                        stock_items: :stock_location,
                        product: :variant_images,
                        option_values: :option_type
                      )

            scope = scope.where(product: @product, is_master: !@product.has_variants?) if @product
            scope = scope.by_stock_location(params[:stock_location_id]) if params[:stock_location_id].present?

            scope
          end

          ::Spree::Admin::StockItemsController.prepend self
        end
      end
    end
  end
end

from solidus.

mehboobali98 avatar mehboobali98 commented on June 1, 2024

Can I work on this? Thanks

from solidus.

kennyadsl avatar kennyadsl commented on June 1, 2024

@mehboobali98 you are welcome!

from solidus.

FranciscoJBrito avatar FranciscoJBrito commented on June 1, 2024

Hi @kennyadsl @vokshirg, is this issue still open? To work on it

from solidus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.