Issue
- When I create a user custom field with a decimal type with a certain value. We create a segment with this custom field. When setting the segment rule and starting the search based on the set value, the search does not work as expected with the Segmentation criteria "Great Than or Equals", "Equals" and "Not Equals".
Reproduction Steps:
1. Set up DXP 7.3.
2. Open the main menu on the upper right --> Control Panel --> Configuration --> Custom Fields and add a "User" custom Field with the following settings:
a. Select an Input Field and name it "eg, new age"
b. Select Integer as Data Type.
c. Type "1" as the Starting Value.
d. Extend the ADVANCED PROPERTIES and only leave the "Searchable as Keyword" enabled, then save.
3. Open the main menu --> Control Panel --> USERS --> Users and Organizations and edit the current user by changing the value of the custom field to "54".
4. Go to the default site --> People --> Segments and add a segment with the created user custom field as the property and set the condition to "Greater than".
Checkpoint: 1 user is matching the condition.
5. Increase the value on the right side until you reach "6".
Actual Result: No user is matching the condition.
Expected Result: 1 user should match the condition as the maximum set value of the user custom field is 54.
See attached video illustration: segmentintegersearchissue.mp4
Environment
- Liferay DXP 7.3
Resolution
- This is a known issue in DXP 7.3 and is resolved by LPS-149028. Please upgrade to update 30 or request a hotfix.