[MNT-14227] Editing the list property value in share with zero after decimal, holding the data type as Float/Double restores the first value from the drop down list on saving and revisiting the edit pop up in share. Created: 11-Jun-15  Updated: 10-Feb-17  Resolved: 27-Apr-16

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Share Application
Affects Version/s: 5.0.2
Fix Version/s: 5.1.2

Type: Bug
Reporter: Charulatha Ganesh [X] (Inactive) Assignee: Closed Bugs (Inactive)
Resolution: Fixed Votes: 0
Labels: CMM, rn511
Remaining Estimate: 0 minutes
Time Spent: 4 days, 6 hours
Original Estimate: Not Specified

Attachments: PNG File First drop down value updated instead of '35.0' after Save and view edit pop up.png     PNG File Float -first drop down value updated instead of '5.0' after save and view edit pop up.png     PNG File Screenshot 2016-04-22 15.36.28.png     PNG File Screenshot 2016-04-22 15.37.24.png     PNG File Screenshot 2016-04-22 15.40.02.png     PNG File Screenshot 2016-04-22 16.07.27.png     PNG File select value with zero after decimal.png    
Issue Links:
Cloners
is cloned by SHA-1043 Editing the list property value in sh... Done
is cloned by MNT-14228 Float data type: Editing the list pro... Closed
Duplicate
is duplicated by MNT-14228 Float data type: Editing the list pro... Closed
Bug Priority:
Category 3
Build Location: https://releases.alfresco.com/Enterprise-5.1/5.1.2/5.1.2/
Epic Link: Custom Model Management

 Description   

Steps to Reproduce:

1. Log in as Admin user
2. Create new model (ex) Model1
3. Activate Model1
4. Create new type (ex) type1 for Model1
5. Create new property (ex) prop1 for type1 with data as below:
Data Type: d:float /d:double
Constraint : Value list
List of values:
54.789
67.0
5677.56
5677.5
Sorted: unchecked/checked
6. Apply the type to any node in share
7. Navigate to edit pop up of the respective node in share
8. Select the property value as '67.0' from the drop down list and click 'Save' button
9. Revisit the edit pop up page for that node in share and view the property value displayed.

Expected:
The property value should be displayed as '67.0' in the edit pop up

Actual:
The property value is set to first value from the drop down list on revisiting (ex) 54.789 as per the test data

Ref: Screen shot attached
Note: The same issue exists for data type double as well.



 Comments   
Comment by Charulatha Ganesh [X] (Inactive) [ 11-Jun-15 ]

Kev, can you please review this issue and add your comments.

Comment by Kevin Roast [X] (Inactive) [ 18-Jun-15 ]

Yes i can reproduce it - the value is set correctly in the node, but not selected correctly in the control. This is not a CMM issue though, it is a MNT existing issue - please raised a linked issue for MNT.

Generated at Sun Oct 25 11:01:27 GMT 2020 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.