mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2025-02-06 09:49:24 +03:00
Fix to case-sensitivity in getCell() method when using a worksheet!cell reference
This commit is contained in:
parent
372c7cbb69
commit
0cdda0dc42
@ -1152,7 +1152,6 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||||||
*/
|
*/
|
||||||
public function getCell($pCoordinate = 'A1')
|
public function getCell($pCoordinate = 'A1')
|
||||||
{
|
{
|
||||||
$pCoordinate = strtoupper($pCoordinate);
|
|
||||||
// Check cell collection
|
// Check cell collection
|
||||||
if ($this->_cellCollection->isDataSet($pCoordinate)) {
|
if ($this->_cellCollection->isDataSet($pCoordinate)) {
|
||||||
return $this->_cellCollection->getCacheData($pCoordinate);
|
return $this->_cellCollection->getCacheData($pCoordinate);
|
||||||
@ -1161,7 +1160,7 @@ class PHPExcel_Worksheet implements PHPExcel_IComparable
|
|||||||
// Worksheet reference?
|
// Worksheet reference?
|
||||||
if (strpos($pCoordinate, '!') !== false) {
|
if (strpos($pCoordinate, '!') !== false) {
|
||||||
$worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true);
|
$worksheetReference = PHPExcel_Worksheet::extractSheetTitle($pCoordinate, true);
|
||||||
return $this->_parent->getSheetByName($worksheetReference[0])->getCell($worksheetReference[1]);
|
return $this->_parent->getSheetByName($worksheetReference[0])->getCell(strtoupper($worksheetReference[1]));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Named range?
|
// Named range?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user