Bugfix: Work item 17976 - Fix to Excel2007 Reader for hyperlinks with an anchor fragment (following a #), otherwise they were treated as sheet references
This commit is contained in:
parent
91de8c54e4
commit
fd4161dcaa
|
@ -1202,9 +1202,12 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
|||
foreach (PHPExcel_Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
|
||||
$cell = $docSheet->getCell( $cellReference );
|
||||
if (isset($linkRel['id'])) {
|
||||
$cell->getHyperlink()->setUrl( $hyperlinks[ (string)$linkRel['id'] ] );
|
||||
}
|
||||
$hyperlinkUrl = $hyperlinks[ (string)$linkRel['id'] ];
|
||||
if (isset($hyperlink['location'])) {
|
||||
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
|
||||
}
|
||||
$cell->getHyperlink()->setUrl($hyperlinkUrl);
|
||||
} elseif (isset($hyperlink['location'])) {
|
||||
$cell->getHyperlink()->setUrl( 'sheet://' . (string)$hyperlink['location'] );
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ Fixed in develop branch:
|
|||
- Bugfix: (MBaker) Work item 18794 - CSV files without a file extension being identified as HTML
|
||||
- Bugfix: (AndreKR) Work item GH-66 - Wrong check for maximum number of rows in Excel5 Writer
|
||||
- Bugfix: (MBaker) Work item GH-67 - Cache directory for DiscISAM cache storage cannot be set
|
||||
- Bugfix: (MBaker) Work item 17976 - Fix to Excel2007 Reader for hyperlinks with an anchor fragment (following a #), otherwise they were treated as sheet references
|
||||
- General: (kea) Work item GH-69 - Improved AdvancedValueBinder for currency
|
||||
- General: (MBaker) Work items 17936 and 17840 - Fix for environments where there is no access to /tmp but to upload_tmp_dir
|
||||
Provided an option to set the sys_get_temp_dir() call to use the upload_tmp_dir; though by default the standard temp directory will still be used
|
||||
|
@ -38,6 +39,7 @@ Fixed in develop branch:
|
|||
- Bugfix: (MBaker) Work item 18844 - cache_in_memory_gzip "eats" last worksheet line, cache_in_memory doesn't
|
||||
- Bugfix: (Progi1984) Work item GH-22 - Sheet View in Excel5 Writer
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
BREAKING CHANGE! As part of the planned changes for handling array formulae in
|
||||
workbooks, there are some changes that will affect the PHPExcel_Cell object
|
||||
|
|
Loading…
Reference in New Issue