Hi all,
First of all: Thanks for the great work you've put into this project, I love working with MunkiReport and it is a great tool for showing off to the head of the department. ;)
I noticed something strange in my environment though; under the client-view in the Storage-tab it showed that ALL drives where encrypted and that ALL drives where internal - which is certainly not the case, so I started digging into the code.
It seems to be a type conversion error/issue in assets/js/munkireport.storageplot.js, where the properties obj.CoreStorageEncrypted and obj.Internal actually returns strings and not integers as expected, even though they are defined as integers in the database. The result is that these expressions:
37: var encrypted = obj.CoreStorageEncrypted ? i18n.t('storage.encrypted') : i18n.t('storage.not_encrypted');
and
60: val: obj.Internal ? i18n.t('storage.internal') : i18n.t('storage.external')
are always true and thus always returns the first options (i.e. always "Encrypted" and always "Internal").
I corrected the issue by parsing the properties as integers with parseInt(), but maybe it's some JSON/PHP encoding/decoding problem somewhere else.
Is anybody else experiencing this behavior?
As the system is somewhat complex, I'm not certain where the issue arose, so maybe it should be corrected in a completely different place?
I am currently running:
MunkiReport version 2.6.1.1487 on a Ubuntu 14.04.3 Server with PHP 5.5.9, MySQL Server 5.5.44 and Apache 2.4.7.
I'm accessing the web interface via Safari 9.0.1 or Firefox 42.0.
Hope you'll chime in with some input.
Sincerely
Steffan