Skip to content

Commit

Permalink
Fixed destination edit issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Volkov committed Jan 13, 2021
1 parent 080dba5 commit c96e7d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Maximus.Connectivity.Monitoring/Assemblies.mpx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Resources>
<Assembly ID="Maximus.Connectivity.Monitoring.UI.Control.Assembly" HasNullStream="false" Accessibility="Public"
QualifiedName="Maximus.Connectivity.UI.Control, Version=1.0.0.130, Culture=neutral, PublicKeyToken=fd5098a6a3259696"
QualifiedName="Maximus.Connectivity.UI.Control, Version=1.0.0.131, Culture=neutral, PublicKeyToken=fd5098a6a3259696"
FileName="Maximus.Connectivity.UI.Control.dll">
<Dependency ID="MBL!Maximus.Base.Library.Console.Assembly" />
</Assembly>
Expand Down
Binary file modified Maximus.Connectivity.Monitoring/MPResources.resources
Binary file not shown.
4 changes: 2 additions & 2 deletions Maximus.Connectivity.UI.Control/NewDestinationDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private void NewDestinationDialog_FormClosing(object sender, FormClosingEventArg
{
string fqdnValue = tbFQDN.Text;
int targetIndexValue = 0;
if (cbAllowDuplicates.Checked)
if (cbAllowDuplicates.Checked || ExistingObject != null) // for existing object always use existing index value, which was loaded into nudTargetIndex in the constructor
targetIndexValue = Convert.ToInt32(nudTargetIndex.Value);
object selectedMAP = null;
if (rbPool.Checked)
Expand Down Expand Up @@ -308,7 +308,7 @@ private void NewDestinationDialog_FormClosing(object sender, FormClosingEventArg
{
bool objectChanged = false;
objectChanged = objectChanged || (ExistingObject[SystemId.EntityClassProperties.DisplayNamePropertyId].Value?.ToString() != tbDisplayName.Text);
objectChanged = objectChanged || (ExistingObject[IDs.FullyQualifiedDomainNameClassProperties.FullyQualifiedDomainNamePropertyId].Value?.ToString() != fqdnValue);
// immutable: objectChanged = objectChanged || (ExistingObject[IDs.FullyQualifiedDomainNameClassProperties.FullyQualifiedDomainNamePropertyId].Value?.ToString() != fqdnValue);
objectChanged = objectChanged || (ExistingObject[IDs.FullyQualifiedDomainNameClassProperties.DescriptionPropertyId].Value?.ToString() != tbDescription.Text);
// TargetIndex cannot be changed for existing objects
if (objectChanged)
Expand Down
4 changes: 2 additions & 2 deletions Maximus.Connectivity.UI.Control/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.130")]
[assembly: AssemblyFileVersion("1.0.0.130")]
[assembly: AssemblyVersion("1.0.0.131")]
[assembly: AssemblyFileVersion("1.0.0.131")]

0 comments on commit c96e7d7

Please sign in to comment.