Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Fixed: createProductCategoryLink gives every link in a category the sequence 00001 (OFBIZ-13925) - #2875

Open
mridulpathak wants to merge 1 commit into
apache:release26.11from
mridulpathak:OFBIZ-13925-release26.11
Open

mridulpathak wants to merge 1 commit into
apache:release26.11from
mridulpathak:OFBIZ-13925-release26.11

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

Backported from trunk (#2874). createProductCategoryLink built the entity from all parameters before calling setNextSubSeqId, which matches the existing rows on every primary key field that is set. When a fromDate was passed, or posted blank by the form as a null-valued key, the lookup never matched and every link in a category got linkSeqId 00001. The next sequence is now looked up with only the productCategoryId set, as the minilang did, and the remaining fields are applied afterwards.

createProductCategoryLink built the entity from all parameters before calling setNextSubSeqId, which matches the existing rows on every primary key field that is set. When a fromDate was passed, or posted blank by the form as a null-valued key, the lookup never matched and every link in a category got linkSeqId 00001. The next sequence is now looked up with only the productCategoryId set, as the minilang did, and the remaining fields are applied afterwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant