Show part name hint in edit page and default description and comment settings of a category now properly works

This fixes issue #196
This commit is contained in:
Jan Böhmer 2023-01-28 21:07:01 +01:00
parent f2239e99d1
commit 58105575d3
4 changed files with 20 additions and 2 deletions

View file

@ -237,6 +237,8 @@ class PartController extends AbstractController
$category = $cid ? $em->find(Category::class, $cid) : null;
if (null !== $category && null === $new_part->getCategory()) {
$new_part->setCategory($category);
$new_part->setDescription($category->getDefaultDescription());
$new_part->setComment($category->getDefaultComment());
}
$fid = $request->get('footprint', null);