Merged in release/3.3 (pull request #6629)

HOR-4880: Update release/3.3.1 with release/3.3
This commit is contained in:
Paula Quispe
2018-09-18 12:20:19 +00:00
committed by Julio Cesar Laura Avendaño
13 changed files with 229 additions and 66 deletions

View File

@@ -1,4 +1,7 @@
<?php
use ProcessMaker\Core\AppEvent;
/**
* Class xmlformTemplate
*
@@ -350,6 +353,10 @@ class xmlformTemplate extends Smarty
//(with the method "printTemplate") and painting takes less than 1 second
//so the new template resource generally will had the same timestamp.
$output = $this->fetch ( 'mem:defaultTemplate' . $form->name );
$output = AppEvent::getAppEvent()
->setHtml($output)
->dispatch(AppEvent::XMLFORM_RENDER, $form)
->getHtml();
return $output;
}