BUG 12118 Fatal error en un dynaform cuando se habilita el html SOLVED

- Cuando se da click en enable html para habilitar la edición de un dynaform, luego de guardar y volver a preview se da un fatal error.
- Change how smarty tags filtering.
This commit is contained in:
Hector Cortez
2013-08-16 16:29:46 -04:00
parent b00a1fa523
commit b5a00a5436

View File

@@ -543,7 +543,7 @@ class dynaformEditorAjax extends dynaformEditor implements iDynaformEditorAjax
public function set_htmlcode($A, $htmlcode)
{
try {
$iOcurrences = preg_match_all('/\{\$\S*\s*\}/im', $htmlcode, $matches);
$iOcurrences = preg_match_all('/\{\$.*?\}/im', $htmlcode, $matches);
if ($iOcurrences) {
if (isset($matches[0])) {
$tagsHtml = $matches[0];