[Bug]: ProductModuleService updateProductOptionValues is a no-op
#14878 opened on Mar 11, 2026
Description
Package.json file
{
"dependencies": {
"@medusajs/admin-sdk": "2.11.3",
"@medusajs/cli": "2.11.3",
"@medusajs/framework": "2.11.3",
"@medusajs/js-sdk": "2.11.3",
"@medusajs/medusa": "2.11.3",
"@medusajs/types": "2.11.3",
},
"devDependencies": {
"@medusajs/test-utils": "2.11.3",
}
}
Node.js version
v20.19.2
Database and its version
PostgreSQL 18.3
Operating system name and version
Windows 11
Browser name
No response
What happened?
I called ProductModuleService.updateProductOptionValues. The second parameter, data gets overwritten by a medusa context because of code in the LocalWorkflow class:
Specifically, the issue is that MedusaService is assigning the updateProductOptionValues method in the same way as all other update methods, that is, having a context in the second argument (index 1), while updateProductOptionValues has it in the third argument (index 2):
Expected behavior
Calling ProductModuleService.updateProductOptionValues will update the product option values.
Actual behavior
Any data input to ProductModuleService.updateProductOptionValues is dropped and a medusa context replaces it, effectively rendering the method a no-op.