Skip to content

Commit

Permalink
Merge pull request #14 from damianz5/EZP-25759
Browse files Browse the repository at this point in the history
EZP-25759: Expanding converter paragraph>custom>section parsing fixed
  • Loading branch information
andrerom committed May 19, 2016
2 parents 54dd496 + 1a3fe07 commit 7c5aba8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/FieldType/XmlText/Converter/Expanding.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private function containsBlock(DOMElement $paragraph)
return (
$xpath->query($containedExpression, $paragraph)->length !== 0
|| $xpath->query('custom/paragraph', $paragraph)->length !== 0
|| $xpath->query('custom/section', $paragraph)->length !== 0
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/">
<custom name="factbox" custom:title="factbox" custom:align="left">
<section>
<header>header</header>
<paragraph>paragraph</paragraph>
</section>
</custom>
</paragraph>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" ez-temporary="1">
<custom name="factbox" custom:title="factbox" custom:align="left">
<section>
<header>header</header>
<paragraph>paragraph</paragraph>
</section>
</custom>
</paragraph>

0 comments on commit 7c5aba8

Please sign in to comment.