in CScreenItem.php validateCreate() the following seems to happen, although i might have gotten it all wrong...
a) "$screenIds = zbx_objectValues($screenItems, 'screenid');" in my case returns only one id - 4.
b) then "$dbScreenItems = API::getApi()->select('screens_items',..." for some reason returns items for a whole bunch of ids.
c) then "$screens = API::getApi()->select('screens', array(..." for some reason returns vsize as 2, although it was 3 up to this moment.
maybe unrelated things that surprise me...
1) why does creating a new screen go through the update methods/functions ?
2) when validating screen, why do we insert some data in the db, then select it only to validate ? is that sane ?
edit : there might have been an existing template with same name in another group, thus update and db access might be justified. actual problem might be inability to change screen dimensions when updating it during the import