Skip to content

Commit

Permalink
New Release 6.5.4, fixes #65
Browse files Browse the repository at this point in the history
  • Loading branch information
SCullman committed Sep 22, 2019
1 parent 76260af commit 612caa7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: ComVisible(false)]


[assembly: AssemblyVersion("06.05.03.00")]
[assembly: AssemblyVersion("06.05.04.00")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyFileVersion("06.05.03.00")]
[assembly: AssemblyFileVersion("06.05.04.00")]

1 change: 0 additions & 1 deletion Components/GlobalConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public class SettingName
public const string SortOrder = "UDT_SortOrder";
public const string CalculatedColumnsRenderExpressionInForm = "CalculatedColumnsRenderExpressionInForm";
public const string URLNewWindow = "UDT_URLNewWindow";
public const string URLDownloadTracking = "UDT_ URLDownloadTracking";
public const string UserLinkNewWindow = "UDT_UserLinkNewWindow";
public const string UserLinkCaption = "UDT_UserLinkUserName";
public const string CnCLink = "UDT_CnCLink";
Expand Down
8 changes: 2 additions & 6 deletions DataTypes/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,17 @@ namespace DotNetNuke.Modules.UserDefinedTable.DataTypes
/// -----------------------------------------------------------------------------
public class EditDownload : EditURL
{
void EditDownload_Load(object sender, EventArgs e)
internal override void EditURL_Load(object sender, EventArgs e)
{
if (! Page.IsPostBack && IsNotAListOfValues)
{
CtlUrl.ShowUrls = false;
CtlUrl.ShowTabs = false;
CtlUrl.ShowTrack = true;
CtlUrl.ShowLog = false;
}
}

public EditDownload()
{
Load += EditDownload_Load;
}

public override string Value
{
get
Expand Down
13 changes: 6 additions & 7 deletions DataTypes/URL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void InitEditControl()
}


void EditURL_Load(object sender, EventArgs e)
internal virtual void EditURL_Load(object sender, EventArgs e)
{
//we need to intilialize only once
if (! Page.IsPostBack)
Expand Down Expand Up @@ -129,8 +129,9 @@ public override string Value
var settings = mc.GetModule(ModuleId).ModuleSettings;

var urlController = new UrlController();
var trackDownloads = GetFieldSetting("TrackDownloads").AsBoolean();
urlController.UpdateUrl(PortalId, CtlUrl.Url, CtlUrl.UrlType, CtlUrl.Log,
settings[SettingName.URLDownloadTracking].AsBoolean(), CtlUrl.ModuleID,
trackDownloads, CtlUrl.ModuleID,
CtlUrl.NewWindow);
returnValue = CtlUrl.Url + (CtlUrl.NewWindow ? "|options=W" : "");
}
Expand Down Expand Up @@ -268,7 +269,7 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
var isLink = true;
//Link readable by browsers
link = UrlUtil.StripURL(link);
var url = HttpUtility.HtmlEncode(Globals.LinkClick(link, portalSettings.ActiveTab.TabID, moduleId));
var url = Globals.LinkClick(link, portalSettings.ActiveTab.TabID, moduleId, field.TrackDownloads, field.EnforceDownload);
if (link != string.Empty)
{
switch (Globals.GetURLType(link))
Expand Down Expand Up @@ -307,9 +308,7 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
caption = tab.TabName;
}
}
url =field.EnforceDownload
? Globals.LinkClick(link, portalSettings.ActiveTab.TabID, moduleId)
: Globals.NavigateURL(int.Parse(link));
url = field.EnforceDownload ? url : Globals.NavigateURL(int.Parse(link));
}
else
{
Expand Down Expand Up @@ -374,7 +373,7 @@ void FillTypeColumns(int moduleId, TokenReplace objTokenReplace, PortalSettings
string strFieldvalue;
if (isLink)
{
strFieldvalue = string.Format("<!--{1}--><a href=\"{0}\"{2}>{1}</a>", HttpUtility.HtmlEncode(url),
strFieldvalue = string.Format("<!--{1}--><a href=\"{0}\"{2}>{1}</a>", url,
caption, (openInNewWindow ? " target=\"_blank\"" : ""));
}
else
Expand Down
2 changes: 1 addition & 1 deletion FormAndList.dnn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="DNN_UserDefinedTable" type="Module" version="06.05.03">
<package name="DNN_UserDefinedTable" type="Module" version="06.05.04">
<friendlyName>Form and List</friendlyName>
<description>Create a simple form or a view of repetitive and simple data.</description>
<iconFile>desktopmodules/userdefinedtable/icon_fnl_32px.gif</iconFile>
Expand Down
6 changes: 6 additions & 0 deletions releasenotes.htm
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<h3>Release Notes</h3>

<h2>DNN Form and List 06.05.04</h2>
<p>Changes</p>
<ul>
<li>Fix: Track number of clicks for Url and Download</li>
</ul>

<h2>DNN Form and List 06.05.03</h2>
<p>Changes</p>
<ul>
Expand Down

0 comments on commit 612caa7

Please sign in to comment.