FIX - When setComplexValue is not found
This commit is contained in:
parent
ec1b3d35ee
commit
aa7c1d0fe8
|
|
@ -274,6 +274,11 @@ class TemplateProcessor
|
||||||
$elementWriter->write();
|
$elementWriter->write();
|
||||||
|
|
||||||
$where = $this->findContainingXmlBlockForMacro($search, 'w:r');
|
$where = $this->findContainingXmlBlockForMacro($search, 'w:r');
|
||||||
|
|
||||||
|
if($where === false) {
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
$block = $this->getSlice($where['start'], $where['end']);
|
$block = $this->getSlice($where['start'], $where['end']);
|
||||||
$textParts = $this->splitTextIntoTexts($block);
|
$textParts = $this->splitTextIntoTexts($block);
|
||||||
$this->replaceXmlBlock($search, $textParts, 'w:r');
|
$this->replaceXmlBlock($search, $textParts, 'w:r');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue