Commit c0c35723 authored by metzlerd's avatar metzlerd
Browse files

Fixed document gen saving.

parent 47b53317
......@@ -239,6 +239,12 @@ class FrxReportEditor {
* @param unknown_type $docgenElements
*/
public function setDocgen($docgenElements) {
$dom = $this->dom;
$newDocs = $dom->createElementNS($this->xmlns, 'docgen');
$this->verifyHeaderElements(array('docgen'));
$dnode = $dom->getElementsByTagNameNS($this->xmlns, 'docgen')->item(0);
$p = $dnode->parentNode;
$p->replaceChild($newDocs, $dnode);
$this->setFrxHeader('docgen', 'doc',
$docgenElements,
array('type'),
......
......@@ -609,7 +609,7 @@ function forena_layout_form_submit($form, &$form_state) {
$docgen = array();
if($selected = array_filter($values['docgen']['docs'])) {
foreach ($selected as $key => $value) {
if ($value) $docgen[] = $key;
if ($value) $docgen[] = array('type' => $key);
}
}
$r->setDocgen($docgen);
......
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY nbsp "&#160;">
]>
<html xmlns:frx="urn:FrxReports">
<head>
<title>Active Users Email</title>
<frx:category>Drupal Administration</frx:category>
<frx:options hidden="0" form=""/>
<frx:options/>
<frx:parameters>
</frx:parameters>
<frx:docgen>
<frx:doc type="email"/>
</frx:docgen>
<frx:doc type="h">h</frx:doc><frx:doc type="e">e</frx:doc></frx:docgen>
<frx:fields><frx:field id="mail" link="" format="" format-string="" target=""/><frx:field id="name" link="" format="" format-string="" target=""/></frx:fields>
</head>
<body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment