Fixed some inspection issues.

This commit is contained in:
Jan Böhmer 2019-11-10 14:00:56 +01:00
parent 3438f15274
commit 6ddc937ec5
32 changed files with 111 additions and 208 deletions

View file

@ -151,7 +151,9 @@ class PartController extends AbstractController
$cid = $request->get('cid', 1);
$category = $em->find(Category::class, $cid);
$new_part->setCategory($category);
if($category !== null) {
$new_part->setCategory($category);
}
$form = $this->createForm(PartBaseType::class, $new_part);