|
|
@ -56,9 +56,13 @@ class GroupController extends XController
|
|
|
|
$group->name = $request->input('name');
|
|
|
|
$group->name = $request->input('name');
|
|
|
|
$group->subtitle = $request->input('subtitle');
|
|
|
|
$group->subtitle = $request->input('subtitle');
|
|
|
|
$group->description = $request->input('description');
|
|
|
|
$group->description = $request->input('description');
|
|
|
|
if ($group->parent_id == ''){
|
|
|
|
|
|
|
|
|
|
|
|
if ($request->input('parent_id') == ''){
|
|
|
|
|
|
|
|
$group->parent_id = null;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
$group->parent_id = $request->input('parent_id',null);
|
|
|
|
$group->parent_id = $request->input('parent_id',null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($request->has('canonical') && trim($request->input('canonical')) != ''){
|
|
|
|
if ($request->has('canonical') && trim($request->input('canonical')) != ''){
|
|
|
|
$group->canonical = $request->input('canonical');
|
|
|
|
$group->canonical = $request->input('canonical');
|
|
|
|
}
|
|
|
|
}
|
|
|
|