-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47af9f5
commit d1f3d63
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -12,11 +13,20 @@ | |
* @author Russell Michell [email protected] | ||
* @package advancedworkflow | ||
*/ | ||
class AWRequiredFields extends RequiredFields | ||
class AWRequiredFieldsValidator extends RequiredFields | ||
{ | ||
protected $data = array(); | ||
protected static $caller; | ||
|
||
/** | ||
* @deprecated 5.4.0 Will be renamed to Symbiote\AdvancedWorkflow\Forms\AWRequiredFieldsValidator | ||
*/ | ||
public function __construct() | ||
{ | ||
Deprecation::noticeWithNoReplacment('5.4.0', 'Will be renamed to Symbiote\\AdvancedWorkflow\\Forms\\AWRequiredFieldsValidator', Deprecation::SCOPE_CLASS); | ||
parent::__construct(); | ||
} | ||
|
||
public function php($data) | ||
{ | ||
$valid = parent::php($data); | ||
|