[BUGFIX] Re-enable export of multiple records via clipboard
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / Classes / Controller / ImportExportController.php
index 03249be..3848c7c 100644 (file)
@@ -666,12 +666,14 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
                 $rUid = $rParts[1];
                 $nameSuggestion .= $tName . '_' . $rUid;
                 $rec = BackendUtility::getRecordWSOL($tName, $rUid);
-                $row[] = '
-                               <tr class="bgColor4">
-                                       <td><strong>' . $this->lang->getLL('makeconfig_record', true) . '</strong></td>
-                                       <td>' . $this->iconFactory->getIconForRecord($tName, $rec, Icon::SIZE_SMALL)->render() . BackendUtility::getRecordTitle($tName, $rec, true)
-                        . '<input type="hidden" name="tx_impexp[record][]" value="' . htmlspecialchars(($tName . ':' . $rUid)) . '" /></td>
-                               </tr>';
+                if (!empty($rec)) {
+                    $row[] = '
+                                       <tr class="bgColor4">
+                                               <td><strong>' . $this->lang->getLL('makeconfig_record', true) . '</strong></td>
+                                               <td>' . $this->iconFactory->getIconForRecord($tName, $rec, Icon::SIZE_SMALL)->render() . BackendUtility::getRecordTitle($tName, $rec, true)
+                            . '<input type="hidden" name="tx_impexp[record][]" value="' . htmlspecialchars(($tName . ':' . $rUid)) . '" /></td>
+                                       </tr>';
+                }
             }
         }
         // Single tables/pids: