Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In commerce_product_pre_calculate_sell_prices() the language code is set to the empty string if the product doesn't have a language set; I think that should be LANGUAGE_NONE?
Comment | File | Size | Author |
---|---|---|---|
#4 | commerce-batch_precalculate_price_language-1739600-4.patch | 1.78 KB | AndyF |
#3 | commerce-batch_precalculate_price_language-1739600-3.patch | 1.75 KB | AndyF |
#1 | commerce-batch_precalculate_price_language-1739600-1.patch | 886 bytes | AndyF |
Comments
Comment #1
AndyF CreditAttribution: AndyF commentedThanks
Comment #2
rszrama CreditAttribution: rszrama commentedI think what you have is correct, but we'll need an update function before we can commit this.
Comment #3
AndyF CreditAttribution: AndyF commentedThanks, hope this is ok. I wasn't sure if the hook_update should return a message?
Comment #4
AndyF CreditAttribution: AndyF commentedOops, used the wrong table name in the comment.
Comment #5
rszrama CreditAttribution: rszrama commentedThanks, Andy. Committed just now. : )