From 944999a279d6be3b9221faf1f92eb6fa3150550d Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 9 Aug 2012 21:10:38 +0000 Subject: [PATCH] cmdChangeResourceGroup_Click changed so that it clears the in-memory resource groups before retrieving them again from the server. This prevents problems when renaming resource groups which when renamed will show up as a separate entry in the ResourceGroup table when repopulating that table from the server. Fixes bug EHS#0000341. --- cs/bsdx0200GUISourceCode/DManagement.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cs/bsdx0200GUISourceCode/DManagement.cs b/cs/bsdx0200GUISourceCode/DManagement.cs index 47f3928..03d9947 100644 --- a/cs/bsdx0200GUISourceCode/DManagement.cs +++ b/cs/bsdx0200GUISourceCode/DManagement.cs @@ -1819,8 +1819,9 @@ namespace IndianHealthService.ClinicalScheduling } m_sResourceGroupName = sResGroupName; + m_dsGlobal.Tables["GroupResources"].Clear(); //must be cleared first as it has a relationship to ResourceGroup + m_dsGlobal.Tables["ResourceGroup"].Clear(); m_DocManager.LoadResourceGroupTable(); - m_dsGlobal.Tables["GroupResources"].Clear(); m_DocManager.LoadGroupResourcesTable();