Skip to content

Commit

Permalink
FormSave 1.1.0-pl1
Browse files Browse the repository at this point in the history
  • Loading branch information
b03tz committed Sep 18, 2012
1 parent dca0c36 commit d043f5a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _build/build.transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/* define package */
define('PKG_NAME','FormSave');
define('PKG_NAME_LOWER','formsave');
define('PKG_VERSION','1.0.0');
define('PKG_VERSION','1.0.1');
define('PKG_RELEASE','pl1');

/* define sources */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
$values = $hook->getValues();
foreach($formFields as $field) {
if (!isset($values[$field])) {
// Add empty field
$dataArray[$field] = '';
continue;
}

Expand Down
7 changes: 5 additions & 2 deletions core/components/formsave/processors/mgr/form/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,13 @@
}

$separatorAdded = false;

if (is_array($value)) {
$value = implode(',', $value);
}

$rowOutput .= $formSave->getChunk('fs.rowdata', array(
'key' => str_replace($templateConfig['replaceInput'], $templateConfig['replaceOutput'], $key),
'value' => str_replace($templateConfig['replaceInput'], $templateConfig['replaceOutput'], $value),
'value' => str_replace($templateConfig['replaceInput'], $templateConfig['replaceOutput'], html_entity_decode($value)),
'formData' => $formData
));

Expand Down
3 changes: 3 additions & 0 deletions core/components/formsave/processors/mgr/form/getdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

$output = '';
foreach($formArray['data'] as $key => $value) {
if (is_array($value)) {
$value = implode(', ', $value);
}
$output .= $formSave->getChunk('fs.datarow', array(
'key' => $key,
'value' => $value
Expand Down

0 comments on commit d043f5a

Please sign in to comment.