Project

General

Profile

Actions

Bug #7787

closed
PB

IPsec widget, JS error in background when switching tabs, Cannot read property 'style' of null

Bug #7787: IPsec widget, JS error in background when switching tabs, Cannot read property 'style' of null

Added by Pi Ba about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
08/20/2017
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.x
Affected Architecture:
amd64

Description

While changing tabs on the ipsec widget.
With 1 inactive tunnel, and no mobile ipsec configured. I get the following errors.

changeTabDIV @ index.php:408
onclick @ index.php:347
index.php:420 Uncaught TypeError: Cannot read property 'style' of null
    at changeTabDIV (index.php:420)
    at HTMLDivElement.onclick (index.php:347)
changeTabDIV @ index.php:420
onclick @ index.php:347
index.php:408 Uncaught TypeError: Cannot read property 'style' of null
    at changeTabDIV (index.php:408)
    at HTMLDivElement.onclick (index.php:347)

Updated by Anonymous about 9 years ago Actions #1

  • Assignee set to Anonymous

Would you post the exact software version you tested with please?

PB Updated by Pi Ba about 9 years ago Actions #2

2.4.0-BETA (amd64)
built on Fri Aug 18 00:32:41 CDT 2017
FreeBSD 11.0-RELEASE-p11

Updated by Anonymous about 9 years ago Actions #3

If no mobile clients are configured, no mobile DIV was being displayed, hence the null. The DIV is now always generated, but populated with an error message. Looks like this was a long-standing thing.

Updated by Anonymous about 9 years ago Actions #4

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Applied in changeset commit:75863a79705fccce21b7e0d0312ce1ef0b0985be.

PB Updated by Pi Ba about 9 years ago Actions #5

Will the fix be backported to 2.4.0 ?

Updated by Anonymous about 9 years ago Actions #6

Yes it will.

PB Updated by Pi Ba about 9 years ago Actions #7

I can confirm the issue is fixed with the change applied.

Updated by Anonymous about 9 years ago Actions #8

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom