Skip to content

Commit

Permalink
Merge branch '6' into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 9, 2024
2 parents 5db879d + d1324b0 commit 18f9dd6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Forms/AWRequiredFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Symbiote\AdvancedWorkflow\Forms;

use SilverStripe\Forms\RequiredFields;
use SilverStripe\Dev\Deprecation;

/**
* Extends RequiredFields so we can prevent DO writes in AW's controller(s) without needing to catch Exceptions
Expand All @@ -11,12 +12,21 @@
*
* @author Russell Michell russell@silverstripe.com
* @package advancedworkflow
*
* @deprecated 5.4.0 Will be renamed to Symbiote\AdvancedWorkflow\Forms\AWRequiredFieldsValidator
*/
class AWRequiredFields extends RequiredFields
{
protected $data = array();
protected static $caller;

public function __construct()
{
$message = 'Will be renamed to Symbiote\\AdvancedWorkflow\\Forms\\AWRequiredFieldsValidator';
Deprecation::noticeWithNoReplacment('5.4.0', $message, Deprecation::SCOPE_CLASS);
parent::__construct(...func_get_args());
}

public function php($data)
{
$valid = parent::php($data);
Expand Down

0 comments on commit 18f9dd6

Please sign in to comment.