From 158ebdf8ec467971bb60344ebe9db46e00d61fcf Mon Sep 17 00:00:00 2001 From: sgiehl <stefan@piwik.org> Date: Sun, 3 Jan 2016 21:39:23 +0100 Subject: [PATCH] fixes #8469 - enable no interaction mode for customvariables:set-max-custom-variables command --- plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php b/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php index 7ff8889d65..2f2fd7e396 100644 --- a/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php +++ b/plugins/CustomVariables/Commands/SetNumberOfCustomVariables.php @@ -55,7 +55,7 @@ class SetNumberOfCustomVariables extends ConsoleCommand $this->printChanges($scope, $numVarsToSet, $output); } - if (!$this->confirmChange($output)) { + if ($input->isInteractive() && !$this->confirmChange($output)) { return; } -- GitLab