|
|
@ -58,7 +58,7 @@ class CategoryController extends XController
|
|
|
|
$category->subtitle = $request->input('subtitle');
|
|
|
|
$category->subtitle = $request->input('subtitle');
|
|
|
|
$category->icon = $request->input('icon');
|
|
|
|
$category->icon = $request->input('icon');
|
|
|
|
$category->description = $request->input('description');
|
|
|
|
$category->description = $request->input('description');
|
|
|
|
if ($category->parent_id != ''){
|
|
|
|
if ($category->parent_id == ''){
|
|
|
|
$category->parent_id = $request->input('parent_id',null);
|
|
|
|
$category->parent_id = $request->input('parent_id',null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($request->has('canonical') && trim($request->input('canonical')) != ''){
|
|
|
|
if ($request->has('canonical') && trim($request->input('canonical')) != ''){
|
|
|
|