Skip to content

Commit

Permalink
fix for issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Guenter Hipler committed Jun 26, 2015
1 parent d288f77 commit 60a621d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Libadmin/src/Libadmin/Services/View/FormetaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function serialize()

//$groupString .= ' \'' . $instKey . '\' : \'' . preg_replace(array('/\'/i'),array('\\'),$instValue) . ' \',';
$groupString .= ' \'' . $instKey . '\' : \'' . preg_replace(array('/\'/i','/\\\\V/i','/\\\\E/i','/d\\\\a/i','/d\\\\i/i'),
array('\\\'','V','E','d a','d\''),$instValue) . ' \',';
array('\\\'','V','E','d a','d\''),$instValue) . '\',';
} else {

$groupString .= ' ' . $this->serializeEntity($instKey, $instValue) ;
Expand Down Expand Up @@ -86,7 +86,7 @@ private function serializeEntity ($key, array $entity) {
if (!is_array($entityValue)) {
//$localString .= '\'' . $entityKey . '\' : \'' . preg_replace(array('/\'/i'),array('\\'),$entityValue) . ' \',';
$localString .= '\'' . $entityKey . '\' : \'' . preg_replace(array('/\'/i','/\\\\V/i','/\\\\E/i','/d\\\\a/i','/d\\\\i/i'),
array('\\\'','V','E','d a','d\''),$entityValue) . ' \',';
array('\\\'','V','E','d a','d\''),$entityValue) . '\',';
} else {
//$localString .= ' {' . $this->serializeEntity($entityKey,$entityValue) . ' }, ';
$localString .= ' ' . $this->serializeEntity($entityKey,$entityValue) . ', ';
Expand Down

0 comments on commit 60a621d

Please sign in to comment.