mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-08 00:09:37 +00:00
Added part description as property to KiCad response, to show it also in Kicad 9.0.5 and 9.06
Fixes #1291
This commit is contained in:
parent
6e4d252617
commit
463d7b89f6
2 changed files with 4 additions and 1 deletions
|
|
@ -202,6 +202,7 @@ class KiCadHelper
|
|||
"exclude_from_bom" => $this->boolToKicadBool($part->getEdaInfo()->getExcludeFromBom() ?? $part->getCategory()?->getEdaInfo()->getExcludeFromBom() ?? false),
|
||||
"exclude_from_board" => $this->boolToKicadBool($part->getEdaInfo()->getExcludeFromBoard() ?? $part->getCategory()?->getEdaInfo()->getExcludeFromBoard() ?? false),
|
||||
"exclude_from_sim" => $this->boolToKicadBool($part->getEdaInfo()->getExcludeFromSim() ?? $part->getCategory()?->getEdaInfo()->getExcludeFromSim() ?? false),
|
||||
"description" => $part->getDescription(),
|
||||
"fields" => []
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ final class KiCadApiControllerTest extends WebTestCase
|
|||
'exclude_from_bom' => 'False',
|
||||
'exclude_from_board' => 'True',
|
||||
'exclude_from_sim' => 'False',
|
||||
'description' => '',
|
||||
'fields' =>
|
||||
array(
|
||||
'footprint' =>
|
||||
|
|
@ -203,6 +204,7 @@ final class KiCadApiControllerTest extends WebTestCase
|
|||
'exclude_from_bom' => 'False',
|
||||
'exclude_from_board' => 'True',
|
||||
'exclude_from_sim' => 'False',
|
||||
'description' => '',
|
||||
'fields' =>
|
||||
array (
|
||||
'footprint' =>
|
||||
|
|
@ -318,4 +320,4 @@ final class KiCadApiControllerTest extends WebTestCase
|
|||
self::assertResponseStatusCodeSame(304);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue