Logout fix. (#420)
commitf6ccdba595df8f2edb41f90ccba9807d4101ec81
authorBrady Miller <brady.g.miller@gmail.com>
Thu, 5 Jan 2017 10:03:16 +0000 (5 02:03 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Jan 2017 10:03:16 +0000 (5 02:03 -0800)
tree8b48afc6ee280e5c51a190b7c8e9b87a1f7ec4c6
parentfe37ca69fbd65ef0c52c0a9dcec88b5d47c794f8
Logout fix. (#420)

This is to prevent following logout bug:
1. Login to OpenEMR.
2. Go to Patient Flow Board and toggle on Open Patient in New Window.
3. A new window(OpenEMR instance) now opens up.
4. Click to logout of the new OpenEMR instance.

Because of code in library/auth.inc, the following bugs happen:
1. The window of the OpenEMR instance that you clicked to logout
   will go away.
2. The Original window (from step 2 above) will then logout.

This is because the 'opener' javascript variable is linked to the
original instance. The fix is to always set the 'opener' variable
to null in the main script for frames (interface/main/main_screen.php)
and tabs (interface/main/tabs/main.php).
interface/main/main_screen.php
interface/main/tabs/main.php