Skip to content

Commit 3b3dc84

Browse files
committed
Pass controller context to handle custom export
Version 3.1
1 parent dda6548 commit 3b3dc84

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Build/CommonAssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
//
1616
// You can specify all the values or you can default the Revision and Build Numbers
1717
// by using the '*' as shown below:
18-
[assembly: AssemblyVersion("3.0.7")]
19-
[assembly: AssemblyFileVersion("3.0.7")]
18+
[assembly: AssemblyVersion("3.1.0")]
19+
[assembly: AssemblyFileVersion("3.1.0")]
2020
//[assembly: AssemblyInformationalVersion("2.5-filters")]

Griddly.Mvc/GriddlyResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public override void ExecuteResult(ControllerContext context)
145145

146146
if (griddlyContext.ExportFormat == GriddlyExportFormat.Custom)
147147
{
148-
result = GriddlySettings.HandleCustomExport(this, items);
148+
result = GriddlySettings.HandleCustomExport(this, items, context);
149149
}
150150
else
151151
{

Griddly.Mvc/GriddlySettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static class Icons
6262
///
6363
/// First argument is the record set. Second argument is the posted form values.
6464
/// </summary>
65-
public static Func<GriddlyResult, NameValueCollection, ActionResult> HandleCustomExport = null;
65+
public static Func<GriddlyResult, NameValueCollection, ControllerContext, ActionResult> HandleCustomExport = null;
6666
public static Action<GriddlySettings, GriddlyResultPage, HtmlHelper, bool> OnBeforeRender = null;
6767
public static Action<GriddlySettings, ControllerContext> OnGriddlyResultExecuting = null;
6868
public static Action<GriddlySettings, GriddlyContext, ControllerContext> OnGriddlyPageExecuting = null;

Griddly/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Griddly.Controllers
1212
{
1313
public class HomeController : Controller
1414
{
15-
public static ActionResult HandleCustomExport(GriddlyResult result, NameValueCollection form)
15+
public static ActionResult HandleCustomExport(GriddlyResult result, NameValueCollection form, ControllerContext context)
1616
{
1717
return new JsonResult()
1818
{

0 commit comments

Comments
 (0)