application/Espo/Core/Utils/Metadata.php
protected function undelete($key1, $key2, $data)
    {
        if (isset($this->deletedData[$key1][$key2])) {
            foreach ($this->deletedData[$key1][$key2] as $unsetIndex => $unsetItem) {
                $value = Util::getValueByKey($data, $unsetItem);
                if (isset($value)) {
                    unset($this->deletedData[$key1][$key2][$unsetIndex]);
                }
            }
        }
    }
protected function undelete($key1, $key2, $data)
    {
        if (isset($this->deletedData[$key1][$key2])) {
            foreach ($this->deletedData[$key1][$key2] as $unsetIndex => $unsetItem) {
                $value = Util::getValueByKey($data, $unsetItem);
                if (isset($value)) {
                    unset($this->deletedData[$key1][$key2][$unsetIndex]);
                }
            }
        }
    }
protected function undelete ( $ key1 , $ key2 , $ data ) { if ( isset ( $ this -> deletedData [ $ key1 ] [ $ key2 ] ) ) { foreach ( $ this -> deletedData [ $ key1 ] [ $ key2 ] as $ unsetIndex => $ unsetItem ) { $ value = Util :: getValueByKey ( $ data , $ unsetItem ) ; if ( isset ( $ value ) ) { unset ( $ this -> deletedData [ $ key1 ] [ $ key2 ] [ $ unsetIndex ] ) ; } } } }
Undelete the deleted items

@param  string $key1
@param  string $key2
@param  array $data
@return void
Undelete the deleted items