Skip to content

Commit 1a08cba

Browse files
committed
EditModuleBase: Add AfterUpdateItem virtual method
1 parent 07efdc5 commit 1a08cba

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

DotNetNuke.R7.Tests/DotNetNuke.R7.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>DotNetNuke.R7.Tests</RootNamespace>
99
<AssemblyName>DotNetNuke.R7.Tests</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.3.0</ReleaseVersion>
11+
<ReleaseVersion>0.3.1</ReleaseVersion>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1414
<DebugSymbols>true</DebugSymbols>

DotNetNuke.R7.sln

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Global
2020
{F5EF3563-5DD0-4412-B6FE-1C992C1E4EE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
2121
{F5EF3563-5DD0-4412-B6FE-1C992C1E4EE6}.Release|Any CPU.Build.0 = Release|Any CPU
2222
EndGlobalSection
23-
GlobalSection(NestedProjects) = preSolution
24-
EndGlobalSection
2523
GlobalSection(MonoDevelopProperties) = preSolution
2624
Policies = $0
2725
$0.TextStylePolicy = $1
@@ -56,6 +54,6 @@ Global
5654
$2.inheritsSet = Mono
5755
$2.inheritsScope = text/x-csharp
5856
$2.scope = text/x-csharp
59-
version = 0.3.0
57+
version = 0.3.1
6058
EndGlobalSection
6159
EndGlobal

DotNetNuke.R7/DotNetNuke.R7.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>DotNetNuke.R7</RootNamespace>
99
<AssemblyName>DotNetNuke.R7</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.3.0</ReleaseVersion>
11+
<ReleaseVersion>0.3.1</ReleaseVersion>
1212
<Description>DotNetNuke.R7 is a library for DNN Platform web CMS extensions development (primarily, modules). It includes DAL2-based generic controller, a set of base classes for modules and settings, useful extension methods for webcontrols and strings, various utilities and some version-specific hacks.</Description>
1313
</PropertyGroup>
1414
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

DotNetNuke.R7/DotNetNuke.R7.dnn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="DotNetNuke.R7" type="Library" version="00.03.00">
3+
<package name="DotNetNuke.R7" type="Library" version="00.03.01">
44
<friendlyName>DotNetNuke.R7</friendlyName>
55
<description>DotNetNuke.R7 is a library for DNN Platform web CMS extensions development (primarily, modules).
66
It includes DAL2-based generic controller, a set of base classes for modules and settings,

DotNetNuke.R7/DotNetNuke.R7.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
useful extension methods for webcontrols and strings, various utilities and some version-specific hacks.
1515
</description>
1616
<summary>DotNetNuke.R7 is a library for DNN Platform web CMS extensions development (NOT STABLE).</summary>
17-
<releaseNotes>Remove currently unused WebAPI references.</releaseNotes>
17+
<releaseNotes>EditModuleBase: Add AfterUpdateItem virtual method.</releaseNotes>
1818
<copyright>Copyright 2014-2015 Roman M. Yagodin &lt;[email protected]&gt;</copyright>
1919
<tags>DotNetNuke DNN</tags>
2020
<dependencies>

DotNetNuke.R7/Modules/EditModuleBase.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ protected virtual void OnButtonUpdateClick (object sender, EventArgs e)
197197
Controller.Update<TItem> (item);
198198
}
199199

200+
AfterUpdateItem (item);
201+
200202
// synchronize module
201203
ModuleController.SynchronizeModule (ModuleId);
202204

@@ -269,6 +271,14 @@ protected virtual void OnLoadNewItem ()
269271
/// <param name="item">Item.</param>
270272
protected abstract void OnUpdateItem (TItem item);
271273

274+
/// <summary>
275+
/// Implement to provide code which will be called
276+
/// after item update in the DB
277+
/// </summary>
278+
/// <param name="item">Item.</param>
279+
protected virtual void AfterUpdateItem (TItem item)
280+
{}
281+
272282
/// <summary>
273283
/// Override to provide code which should be called on Page_Load then (IsPostBack == true) here
274284
/// </summary>

DotNetNuke.R7/releaseNotes.htm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<div style="white-space:normal">
2+
<h3>Version 0.3.1</h3>
3+
<ul>
4+
<li>EditModuleBase: Add AfterUpdateItem virtual method.</li>
5+
</ul>
26
<h3>Version 0.3.0</h3>
37
<ul>
48
<li>Remove currently unused WebAPI references.</li>

0 commit comments

Comments
 (0)