KamoCRM

Price-list entry read and update spoke to the wrong endpoint

Fixkamo-internal
Shipped
27 ஆகஸ்ட், 2026 அன்று 4:00 AM UTC
Author
kamo
Commit
2995a47

Two silent client/server mismatches made the retail price-list entry screen's write path dead: - the entries list was unwrapped with the key "entries", but CommerceMarketController answers Map.of("priceListEntries", items), so unwrapArray fell through to [] and every price list looked empty; - the entry update PUT went to **************** while the controller maps **************** — the delete call one line below already used the singular spelling, which is why the typo survived review. Pinned by a source-level assertion that reads both commerceApi.ts and CommerceMarketController.java and compares the literals: the property is "two strings agree with a Java file in another repo", which no runtime test here can observe. The cross-repo half skips when the SecurityService checkout is absent; the client-side half always runs.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing