Skip to content

Commit

Permalink
Changed to use undepreciated method
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSadlerUK committed Nov 24, 2022
1 parent be14068 commit a7a225f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,17 @@
<Reference Include="Umbraco.Core, Version=8.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoCms.Core.8.17.2\lib\net472\Umbraco.Core.dll</HintPath>
</Reference>
<Reference Include="Umbraco.Forms.Core, Version=8.10.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.10.2\lib\net472\Umbraco.Forms.Core.dll</HintPath>
<Reference Include="Umbraco.Forms.Core, Version=8.13.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.13.4\lib\net472\Umbraco.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Umbraco.Forms.Core.Providers, Version=8.10.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.10.2\lib\net472\Umbraco.Forms.Core.Providers.dll</HintPath>
<Reference Include="Umbraco.Forms.Core.Providers, Version=8.13.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.13.4\lib\net472\Umbraco.Forms.Core.Providers.dll</HintPath>
</Reference>
<Reference Include="Umbraco.Forms.Web, Version=8.10.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.10.2\lib\net472\Umbraco.Forms.Web.dll</HintPath>
<Reference Include="Umbraco.Forms.Web, Version=8.13.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.13.4\lib\net472\Umbraco.Forms.Web.dll</HintPath>
</Reference>
<Reference Include="Umbraco.Licensing, Version=2.0.33.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\UmbracoForms.Core.8.10.2\lib\net472\Umbraco.Licensing.dll</HintPath>
<HintPath>..\packages\UmbracoForms.Core.8.13.4\lib\net472\Umbraco.Licensing.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Umbraco.Forms.Core.Data.Storage;
using Umbraco.Forms.Core.Enums;
using Umbraco.Forms.Core.Models;
using Umbraco.Forms.Core.Services;

namespace ActiveIS.UmbracoForms.ConfirmInput.Fields
{
Expand Down Expand Up @@ -36,9 +37,8 @@ public override string GetDesignView()
public string Placeholder { get; set; }

public override IEnumerable<string> ValidateField(Form form, Field field, IEnumerable<object> postedValues, HttpContextBase context,
IFormStorage formStorage)
IFormStorage formStorage, IFieldTypeStorage fieldTypeStorage, List<string> errors)
{
var errors = new List<string>();
var fieldValues = postedValues.ToList();

if (!fieldValues[0].ToString().Equals(fieldValues[1].ToString(), StringComparison.InvariantCultureIgnoreCase))
Expand All @@ -51,7 +51,7 @@ public override IEnumerable<string> ValidateField(Form form, Field field, IEnume
errors.Add(ValidationErrorMessage);
}

return errors.Any() ? errors : base.ValidateField(form, field, fieldValues.Take(1), context, formStorage);
return base.ValidateField(form, field, postedValues.Take(1), context, formStorage, fieldTypeStorage, errors);
}

public override IEnumerable<string> RequiredJavascriptFiles(Field field)
Expand Down
2 changes: 1 addition & 1 deletion ActiveIS.UmbracoForms.ConfirmInput/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
<package id="Umbraco.SqlServerCE" version="4.0.0.1" targetFramework="net472" />
<package id="UmbracoCms.Core" version="8.17.2" targetFramework="net472" />
<package id="UmbracoForms.Core" version="8.10.2" targetFramework="net472" />
<package id="UmbracoForms.Core" version="8.13.4" targetFramework="net472" />
</packages>

0 comments on commit a7a225f

Please sign in to comment.