Merge pull request #1982 from hector-cortez/BUG-12118

BUG 12118 Fatal error en un dynaform cuando se habilita el html SOLVED
This commit is contained in:
julceslauhub
2013-08-16 14:31:15 -07:00

View File

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