mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 21:36:05 +03:00
Set correct active sheet when setReadDataOnly(true) and only loading a selection of two or more worksheets rather than all worksheets
This commit is contained in:
parent
092fc7b5f7
commit
9de3d5a62b
@ -1643,7 +1643,7 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->_readDataOnly) {
|
if ((!$this->_readDataOnly) || (!empty($this->_loadSheetsOnly))) {
|
||||||
// active sheet index
|
// active sheet index
|
||||||
$activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index
|
$activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user