mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR Reuse of $currentStep variable, instead of retrieving the step again
This commit is contained in:
parent
9f8d2e1da8
commit
203bb03286
@ -113,8 +113,8 @@ abstract class MultiForm extends Form {
|
||||
|
||||
// Apply validation if the current step requires validation (is not exempt)
|
||||
if($applyValidation) {
|
||||
if($this->getCurrentStep()->getValidator()) {
|
||||
$validator = $this->getCurrentStep()->getValidator();
|
||||
if($currentStep->getValidator()) {
|
||||
$validator = $currentStep->getValidator();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user