Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
Fixed issue with saving for partitions only.
  • Loading branch information
m-kovalsky committed Sep 30, 2021
1 parent ae96a92 commit 0c7bdcd
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions ProcessingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -864,21 +864,24 @@
batchNameFull = batchPrefix+batchName;
}
int rootNodeSelCount = 0;
int childNodeSelCount = 0;
int tableNodeSelCount = 0;
int partitionNodeSelCount = 0;
foreach (System.Windows.Forms.TreeNode rootNode in treeView.Nodes)
foreach (System.Windows.Forms.TreeNode modelNode in treeView.Nodes)
{
if (rootNode.StateImageIndex == 1)
foreach (System.Windows.Forms.TreeNode tableNode in modelNode.Nodes)
{
rootNodeSelCount++;
}
if (tableNode.StateImageIndex == 1)
{
tableNodeSelCount++;
}
foreach (System.Windows.Forms.TreeNode childNode in rootNode.Nodes)
{
if (childNode.StateImageIndex == 1)
foreach (System.Windows.Forms.TreeNode partitionNode in tableNode.Nodes)
{
childNodeSelCount++;
if (partitionNode.StateImageIndex == 1)
{
partitionNodeSelCount++;
}
}
}
}
Expand All @@ -895,7 +898,7 @@
{
Error("Batch not saved. Batch name cannot be the same as an existing batch name. Please enter a different batch name.");
}
else if (rootNodeSelCount == 0 && childNodeSelCount == 0)
else if (tableNodeSelCount == 0 && partitionNodeSelCount == 0)
{
Error("Batch not saved. Batch must have at least one table or partition selected.");
}
Expand Down

0 comments on commit 0c7bdcd

Please sign in to comment.