Unable to display category image by name
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
None
Attachments
1
Activity
Show:

Dmitry Andrejev March 30, 2011 at 2:53 PM
Closing, since 5.1.2 release has been released.

Alex January 5, 2011 at 11:41 AM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0000906: Unable to display category image by name
Commit on behalf of Dmitry

Alex January 5, 2011 at 11:40 AM
ok

Dmitry Andrejev December 2, 2010 at 6:57 PM
Please test the patch.
Fixed
Priority
Assignee

Reporter

Developer

Change Log Message
Unified case-sensitive parameter processing of <inp2:Image* tags
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
906
External issue URL
Fix versions
Affects versions
Created October 25, 2010 at 8:37 PM
Updated December 29, 2024 at 9:15 PM
Resolved March 30, 2011 at 2:53 PM
I was unable to display category image other then primary by specifying it's name. Tag <inp2:c_ImageSrc Name="test" MaxWidth="75" /> was used.
It seems, that there is a bug in "ImageTagProcessor::LoadItemImage" method, that tries to process both "Name" and "name" parameters, but fails due complex logic of that method itself.
I propose to normalize parameter processing logic of this method, so all parameters names will be lowercased at first and then processed.