From 5519ae1e361a1fc0a14e1114dc1da83690bced2b Mon Sep 17 00:00:00 2001 From: Marco Hermo Date: Fri, 29 Oct 2021 18:14:54 +1300 Subject: [PATCH] Missing Controller use on Constraint_remote The `Constraint_remote::validate()` method uses `Controller::curr()` but it is not imported at the top. --- code/ZenValidatorConstraint.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/ZenValidatorConstraint.php b/code/ZenValidatorConstraint.php index f7f32ce..f2e2c37 100644 --- a/code/ZenValidatorConstraint.php +++ b/code/ZenValidatorConstraint.php @@ -6,6 +6,7 @@ use SilverStripe\View\Requirements; use SilverStripe\i18n\i18n; use SilverStripe\Forms\CheckboxSetField; +use SilverStripe\Control\Controller; use SilverStripe\Control\Director; /**