If value is empty set to null
This commit is contained in:
parent
181b1d1cd7
commit
2e88c51ac7
|
@ -176,7 +176,7 @@ class NodesController extends Controller
|
|||
|
||||
try {
|
||||
$update = Models\Allocation::findOrFail($request->input('allocation'));
|
||||
$update->ip_alias = $request->input('alias');
|
||||
$update->ip_alias = (empty($request->input('alias'))) ? null : $request->input('alias');
|
||||
$update->save();
|
||||
|
||||
return response('', 204);
|
||||
|
|
Loading…
Reference in New Issue