Page 1 of 1

Related entity - add record action can't add multiple related records

Posted: 09 Apr 2024, 10:41
by p.dimitrov
I have an order entity with an entity field "Protokol". I want to select multiple orders and run action "Add related record" for each selected order, and add one new "Protokol" for each selected record. If only one orders is selected its ok, but with multiple selected orders this error happens:

Code: Select all

Database Error: 1054 - Unknown column 'field_1996' in 'field list'
Query: insert into app_entity_102 (field_1996, parent_item_id, created_by, date_added) values ('5,6,7,9', '0', '121', '1712643701')
Page: /backup/index.php?module=items/processes&action=run&id=137&path=54&redirect_to=items&token=aEMEEKe3zM
#0 includes\functions\database.php(99): mysqli_query(Object(mysqli), 'insert into app...')
#1 includes\functions\database.php(233): db_query('insert into app...', false)
#2 plugins\ext\classes\processes\processes.php(1425): db_perform('app_entity_102', Array)
#3 modules\items\actions\processes.php(50): processes->run(Array, 1308)
#4 index.php(31): require('C:\\xampp\\htdocs...')
#5 {main}
field_1996 - this is related entity field in order
app_entity_102 - prokotol entity

Re: Related entity - add record action can't add multiple related records

Posted: 09 Apr 2024, 18:02
by support
First update to 3.5, please. If error will be exist, I will check.