Fixed a problem with single child account not populating tree

This commit is contained in:
Rick Falkvinge
2017-10-03 12:02:31 +02:00
parent 96b54365fa
commit b1de7db1d1
3 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace Swarmops.Frontend.Automation
// Is this stuff in cache already?
string cacheKey = "ExpensableBudgets-Json-" + accountType +
string cacheKey = "Budgets-Json-" + accountType +
// use the sanitized input to prevent cache overload
CurrentOrganization.Identity.ToString ((CultureInfo.InvariantCulture));
@@ -106,7 +106,7 @@ namespace Swarmops.Frontend.Automation
return string.Empty;
}
if (this._hashedAccounts[rootNodeId].Count == 1)
if (this._hashedAccounts[rootNodeId].Count < 1)
{
// No children
-8
View File
@@ -110,13 +110,6 @@
<Compile Include="Controls\v5\Base\AjaxToggleSlider.ascx.designer.cs">
<DependentUpon>AjaxToggleSlider.ascx</DependentUpon>
</Compile>
<Compile Include="Controls\v5\Base\FileUploader.ascx.cs">
<DependentUpon>FileUploader.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Controls\v5\Base\FileUploader.ascx.designer.cs">
<DependentUpon>FileUploader.ascx</DependentUpon>
</Compile>
<Compile Include="Controls\v5\Swarm\ImpersonationWarningBox.ascx.cs">
<DependentUpon>ImpersonationWarningBox.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -690,7 +683,6 @@
<Content Include="Controls\v5\Base\ComboGeographies.ascx" />
<Content Include="Controls\v5\Base\DropDown.ascx" />
<Content Include="Controls\v5\Base\FileUpload.ascx" />
<Content Include="Controls\v5\Base\FileUploader.ascx" />
<Content Include="Controls\v5\Base\MainMenu.ascx" />
<Content Include="Controls\v5\Base\ModalDialog.ascx" />
<Compile Include="Controls\v5\Base\AjaxTextBox.ascx.designer.cs">