mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Copy over only limited set of attributes for safety
This commit is contained in:
parent
5e877f9b05
commit
758e232b6c
1 changed files with 6 additions and 1 deletions
|
|
@ -948,11 +948,16 @@ class ProjectPushItemProcess:
|
|||
self._product_entity = product_entity
|
||||
return product_entity
|
||||
|
||||
src_attrib = self._src_product_entity["attrib"]
|
||||
copied_attrib = {
|
||||
"description": src_attrib.get("description"),
|
||||
"productGroup": src_attrib.get("productGroup")
|
||||
}
|
||||
product_entity = new_product_entity(
|
||||
product_name,
|
||||
product_type,
|
||||
folder_id,
|
||||
attribs=self._src_product_entity["attrib"]
|
||||
attribs=copied_attrib
|
||||
)
|
||||
self._operations.create_entity(
|
||||
project_name, "product", product_entity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue