Skip to content

Commit

Permalink
[mms] Fix indexing MIME part when base is a multipart object.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 17, 2015
1 parent 8b3249b commit 32fadc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion framework/Mime/lib/Horde/Mime/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,11 @@ public function rewind()
{
if ($this->_status & self::STATUS_REINDEX) {
$id = $this->getMimeId();
$this->buildMimeIds(is_null($id) ? '1' : $id);
$this->buildMimeIds(
is_null($id)
? (($this->getPrimaryType() === 'multipart') ? '0' : '1')
: $id
);
}

$this->_parts = array_values($this->_parts);
Expand Down
4 changes: 2 additions & 2 deletions framework/Mime/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix indexing MIME part when base is a multipart object.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1697,7 +1697,7 @@
<date>2015-04-13</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix indexing MIME part when base is a multipart object.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 32fadc2

Please sign in to comment.