Layout linkedToLayout = LayoutUtil.findByG_P_L(
scopeGroupId, layout.isPrivateLayout(), linkToLayoutId);
exportLayout(
context, layoutConfigurationPortlet, layoutCache, portletIds,
exportPermissions, exportUserPermissions, linkedToLayout,
<BUG>layoutsEl);
</BUG>
}
fixTypeSettings(layout);
<BUG>layoutEl.addAttribute("path", path);
</BUG>
context.addZipEntry(path, layout);

Layout linkedToLayout = LayoutUtil.findByG_P_L(
scopeGroupId, layout.isPrivateLayout(), linkToLayoutId);
exportLayout(
context, layoutConfigurationPortlet, layoutCache, portletIds,
exportPermissions, exportUserPermissions, linkedToLayout,
layoutsElement);
}
fixTypeSettings(layout);
layoutElement.addAttribute("path", path);
context.addZipEntry(path, layout);
