Skip to content
Snippets Groups Projects
Commit ca5224a8 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #2331761: Prefix and suffix are lost when updating a PDF template.

parent b8d081e5
No related branches found
No related tags found
No related merge requests found
...@@ -540,11 +540,7 @@ function fillpdf_generate_mappings($pdf_form, $skip_encoding = FALSE) { ...@@ -540,11 +540,7 @@ function fillpdf_generate_mappings($pdf_form, $skip_encoding = FALSE) {
$fields = db_query('SELECT * FROM {fillpdf_fields} WHERE fid = :fid', array(':fid' => $fid->fid)); $fields = db_query('SELECT * FROM {fillpdf_fields} WHERE fid = :fid', array(':fid' => $fid->fid));
$export_array = array(); $export_array = array();
foreach ($fields as $field) { foreach ($fields as $field) {
$export_array[$field->pdf_key] = array( $export_array[$field->pdf_key] = (array) $field;
'label' => $field->label,
'value' => $field->value,
'replacements' => $field->replacements,
);
} }
return ($skip_encoding === FALSE ? json_encode($export_array) : $export_array); return ($skip_encoding === FALSE ? json_encode($export_array) : $export_array);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment