-
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 dbb5a33
Showing
1 changed file
with
10 additions
and
0 deletions.
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 | ||
|
@@ -11,12 +12,21 @@ | |
* | ||
* @author Russell Michell [email protected] | ||
* @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); | ||
|