When submitting an import form and validation fails, there is no DN returned, so dont update one.
This commit is contained in:
parent
b1d153aa9f
commit
3fad9770a3
@ -376,10 +376,12 @@ class HomeController extends Controller
|
|||||||
->with('bases',$this->bases());
|
->with('bases',$this->bases());
|
||||||
|
|
||||||
// If we are rendering a DN, rebuild our object
|
// If we are rendering a DN, rebuild our object
|
||||||
$o = config('server')->fetch($key['dn']);
|
if ($key['dn']) {
|
||||||
|
$o = config('server')->fetch($key['dn']);
|
||||||
|
|
||||||
foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash']) as $attr => $value)
|
foreach (collect(old())->except(['key','dn','step','_token','userpassword_hash']) as $attr => $value)
|
||||||
$o->{$attr} = $value;
|
$o->{$attr} = $value;
|
||||||
|
}
|
||||||
|
|
||||||
return match ($key['cmd']) {
|
return match ($key['cmd']) {
|
||||||
'create' => $view
|
'create' => $view
|
||||||
|
Loading…
x
Reference in New Issue
Block a user