Commit 73ed8c2
committed
Prevent adding more hyperlinks than the allowed limit per worksheet in Excel of 65,530.
Exceeding this limit will result in an error when opening up the file, similar to this:
> We found a problem with some content in ‘.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.
With this change we now prevent the creation of hyperlinks if the limit of 65,530 has been reached.
We will also output a warning to the Rails log but only once. It will show the worksheet name as well as the row and column where it was exceeded.
Fixes #4751 parent ca2ad29 commit 73ed8c2
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
266 | 277 | | |
267 | 278 | | |
268 | 279 | | |
| |||
0 commit comments