From cd963d01e44e66c9dcea3125471a152cd313d8f5 Mon Sep 17 00:00:00 2001 From: mschill Date: Wed, 23 Oct 2024 15:54:20 -0400 Subject: [PATCH] B2024-084 Fix Refresh Issue in RO Definitions. Modify an In Use field item, choose Continue, choose OK in the Text Definition Field. Hit Cancel in the next two windows, then open the RO Definition back up and the change is still there in the "In Use" column but not the Menu Value. Close the RO Editor and re-open and the change was now gone as it's supposed to be. --- .../ReferencedObjects/Exe/RefObj/ROEditor/FieldTypeDefFrm.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/FieldTypeDefFrm.cs b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/FieldTypeDefFrm.cs index c5498ffa..b603f083 100644 --- a/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/FieldTypeDefFrm.cs +++ b/PROMS/ReferencedObjects/Exe/RefObj/ROEditor/FieldTypeDefFrm.cs @@ -220,6 +220,7 @@ namespace ROEditor return; } + string origFieldName = myrof.GetFieldname; myrof.SetFieldname(this.tbFieldName.Text); uint ftype=0; if (this.rbSingleLine.Checked == true) @@ -270,7 +271,9 @@ namespace ROEditor } myrof.SetFieldType(ftype); FieldTextFrm ftxt = new FieldTextFrm(myrof, myrodb, myelem, original_type, editlevel, origname, avlist, iulist); - ftxt.ShowDialog(); + if (ftxt.ShowDialog() == DialogResult.Cancel) + myrof.SetFieldname(origFieldName); + this.Close(); } #region Windows Form Designer generated code -- 2.47.2