Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

exclude missing profiles from stats #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jornane
Copy link

@jornane jornane commented Dec 20, 2018

When viewing the Stats page just after renaming a profile, it will fail with Key "internet" for array with keys "uninett" does not exist in "vpnStats.twig" at line 41.. This is because the list of statistics doesn't match the list of actual profiles.

This PR excludes profiles from $stats['profiles'] that are missing from $profileList.

@jornane
Copy link
Author

jornane commented Dec 21, 2018

It seems this is already fixed in

<?php if (array_key_exists($k, $idNameMapping)): ?>
but I'll leave this here until a new version is released with the fix, so I can confirm it's fixed.

@ghost
Copy link

ghost commented Dec 21, 2018

also when stats are available, but when no (current) profiles match the available stats, a different message should be shown.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant