Index: core/kernel/utility/temp_handler.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/temp_handler.php (revision 15932) +++ core/kernel/utility/temp_handler.php (revision ) @@ -1374,6 +1374,16 @@ { parent::__construct($prefix, $ids); + // editing sub-item, linked to multiple parents directly + if ( is_array($this->_foreignKey) ) { + $this->_multipleParents = true; + $this->_foreignKey = reset($this->_foreignKey); + } + + if ( is_array($this->_parentTableKey) ) { + $this->_parentTableKey = reset($this->_parentTableKey); + } + $this->_setAsLastUsed(); $this->_addSubTables(); } \ No newline at end of file