Enforce sheet name uniqueness per workbook (#397)

Instead of across all workbooks (in case of multiple spreadsheets being created at the same time).
This commit is contained in:
Adrien Loison authored and GitHub committed 2017-03-27 17:58:06 +02:00
1 parent 36d3596f83
commit 33c9d2f2ed
5 files changed
+43 -13

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ class Workbook extends AbstractWorkbook
public function addNewSheet()
{
$newSheetIndex = count($this->worksheets);
$sheet = new Sheet($newSheetIndex);
$sheet = new Sheet($newSheetIndex, $this->internalId);
$sheetsContentTempFolder = $this->fileSystemHelper->getSheetsContentTempFolder();
$worksheet = new Worksheet($sheet, $sheetsContentTempFolder);