Skip to content

Commit

Permalink
Revert "Fix looping through attachment ids."
Browse files Browse the repository at this point in the history
This looping goes over existing data from the internal cache, so the hash
already should have been built.

This reverts commit a939418.
  • Loading branch information
yunosh committed Apr 1, 2014
1 parent b433ce0 commit e8da45c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -458,7 +458,7 @@ public function store(array $objects,
foreach ($delete as $obid => $object_id) {
$object = $this->_data[self::OBJECTS][$object_id];
if (isset($object['_attachments'])) {
foreach (array_keys($object['_attachments']) as $id) {
foreach ($object['_attachments']['id'] as $id) {
$this->_cache->deleteAttachment(
$this->getDataId(), $obid, $id
);
Expand Down

0 comments on commit e8da45c

Please sign in to comment.