Skip to content

Commit

Permalink
Merge pull request #4 from sdl/develop
Browse files Browse the repository at this point in the history
missing fix
  • Loading branch information
bkoopman committed Sep 3, 2015
2 parents 81b7624 + f81efcf commit db3a4f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions webapp-net/SmartTarget/Mapping/SmartTargetModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,11 @@ private static bool GetAllowDuplicatesOnSamePage(IPageTemplate pageTemplate, Loc
const string allowDuplicatesFieldName = "allowDuplicationOnSamePage";
const string allowDuplicatesConfig = "smarttarget.allowDuplicationOnSamePageConfig";

string allowDuplicates;
string allowDuplicates = null;
if (pageTemplate != null && pageTemplate.MetadataFields != null && pageTemplate.MetadataFields.ContainsKey(allowDuplicatesFieldName))
{
allowDuplicates = pageTemplate.MetadataFields[allowDuplicatesFieldName].Value;
}
else
{
allowDuplicates = "true";
}

if (String.IsNullOrEmpty(allowDuplicates) || allowDuplicates.Equals("Use core configuration", StringComparison.OrdinalIgnoreCase))
{
Expand Down

0 comments on commit db3a4f9

Please sign in to comment.