-
Notifications
You must be signed in to change notification settings - Fork 278
Open
Description
Copy of #6441
Describe the bug
Renaming an enum value doesn't change the initvalue of field using enum
To Reproduce
Steps and to reproduce the behavior:
- create enum
- add value to enum (Calulation)
- create field in table of type enum of 1.
- set initvalue on the field
- rename enumvalue (Calculation, fixing the typo)
- Observe error
AL0522 Property value "Calulation" is not in the values for enum 'Source Type'.
AL Code to reproduce the issue
enum 50000 "Source Type"
{
Extensible = true;
value(50000; "Calculation")
{
Caption = 'Calculation';
}
field(50000; "Source Type"; enum "Source Type")
{
DataClassification = CustomerContent;
Caption = 'Source Type';
InitValue = "Calulation";
}
Retested it on newest version, as old bug got incorrectly closed ...

Expected behavior
Initvalue also renamed.
Screenshots
5. Versions:
- AL Language: (old 6.1.397164) -> 16.3.2065053
- (old Business Central: BE Business Central 17.2 (platform 17.0.19353.20441 + toepassing 17.2.19367.20601))
Version: BE Business Central 27.4 (Platform 27.0.46893.0 + Application 27.4.45366.47426)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels