In several locations Lang.toTitleCase() is used to convert a field name to a getter. This works fine when the field name doesn't contain any capitals, however it has unexpected results when it does contain capitals.
For example:
field = "created";
Lang.toTitleCase(field); // Result: Created
field = "totalPrice";
Lang.toTitleCase(field); // Result: Totalprice
Note the lowercased p. The expected value is TotalPrice which leads to a getter getTotalPrice().
In several locations
Lang.toTitleCase()
is used to convert a field name to a getter. This works fine when the field name doesn't contain any capitals, however it has unexpected results when it does contain capitals.For example:
Note the lowercased
p
. The expected value isTotalPrice
which leads to a gettergetTotalPrice()
.