quick icon indicating copy to clipboard operation
quick copied to clipboard

[5.1.3] Primary Key Returning Decimal Instead of Integer

Open homestar9 opened this issue 1 year ago • 3 comments

Upgrading from 5.1.2 to 5.1.3 introduces a bug where the primary key returns a decimal instead of an integer when getting the memento of an entity that was just created.

5.1.2: image

5.1.3: image

Engine Tested: ACF 2018.0.14 and ACF 2018.0.15 DB Engine: MSSQL Server

Interestingly, in 5.1.2, the memento returns a string instead of a number, as noted by the value wrapped in double quotes. Perhaps the intent of 5.1.3 was to ensure the value gets returned in numeric form. However, ACF is including the decimal for some reason which will throw off any app that expects the primary key to be an integer.

I will report back when I have more information but wanted to let @elpete know since this feels like a big one IMO.

homestar9 avatar Oct 14 '22 15:10 homestar9