mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
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:
parent
f2239e99d1
commit
58105575d3
4 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue