Include warning for #722

This commit is contained in:
James Cole
2017-07-29 08:27:39 +02:00
parent f4994ef151
commit db3b822aef
8 changed files with 78 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ use Illuminate\Http\Request;
use Illuminate\Http\Response as LaravelResponse;
use Log;
use Response;
use Session;
use View;
/**
@@ -231,6 +232,13 @@ class ImportController extends Controller
$data = $request->all();
$configurator->configureJob($data);
// get possible warning from configurator:
$warning = $configurator->getWarningMessage();
if(strlen($warning) > 0) {
Session::flash('warning', $warning);
}
// return to configure
return redirect(route('import.configure', [$job->key]));
}