Category not available during Link/Product (or any category item) creation
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
None
Attachments
1
Activity
Show:
Alex September 19, 2011 at 9:08 PM
Closing, since 5.1.3 release has been released.
Alex July 8, 2011 at 10:04 AM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0001058: Category not available during Link/Product (or any category item) creation
Dmitry Andrejev July 7, 2011 at 3:09 PM
Patch has been reviewed and tested. Moved to 5.1.3 release to get it out the way and make Merge to 5.2.0 easier.
Fixed
Priority
Assignee
Reporter
Alex
AlexDeveloper
Alex
AlexChange Log Message
Fixes category not passed into OnBeforeItemCreate method of Category Items
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
1058
External issue URL
Fix versions
Affects versions
Created May 27, 2011 at 9:55 AM
Updated December 29, 2024 at 9:12 PM
Resolved September 19, 2011 at 9:08 PM
There is a "Parent Section" (virtual field: CategoryId) on each category item adding/editing page.
This field allows to place category item into a specific category. This functionality works like a charm, but problem happens, when you need to set another field's value based on the category, where category item is added.
Usually method OnBeforeItemCreate is used for this kind of operation. Strange, but this CategoryId field has no value in this method, however it's clearly is specified on category item creation screen.