Skip to content

Commit 5186013

Browse files
committed
Fixed source data fetching for os2forms_webform2pdf
1 parent a429bf1 commit 5186013

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

os2forms.module

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ function _os2forms_migrate_prepare_row_pdf(\Drupal\migrate\Row $row, \Drupal\mig
131131
->execute()
132132
->fetchAssoc();
133133

134-
if (empty($of_default['data'])) {
135-
$data = unserialize($default['data']);
136-
unset($default['data']);
137-
$default = array_merge($default, $data);
134+
if (!empty($of_default['data'])) {
135+
$data = unserialize($of_default['data']);
136+
unset($of_default['data']);
137+
$default = array_merge($of_default, $data);
138138
}
139139

140140
$markup = "webform_attachment_pdf:\n";

0 commit comments

Comments
 (0)