From 6a8a5ff35c4b634cfe13bf13eb7726bfb889c896 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 24 Feb 2015 00:57:26 +0100 Subject: [PATCH] Fixed bug where you couldn't reparent an account to root level --- Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs b/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs index 0419148a..bdf90893 100644 --- a/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs +++ b/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs @@ -243,7 +243,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers } FinancialAccount newParent = null; // to cover the root account case (reparenting to root) - if (parentAccountId != 0) + if (parentAccountId > 0) // the group parent IDs are -1 ... -4 { newParent = FinancialAccount.FromIdentity (parentAccountId); if (newParent.OrganizationId != authData.CurrentOrganization.Identity)