XH 1.6.7: little bug in admin.js

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

XH 1.6.7: little bug in admin.js

Post by Holger » Sat Jul 04, 2015 9:57 am

There's a little bug in admin.js:

Code: Select all

TypeError: inputs[0] is undefined
(admin.js line 530)

Code: Select all

function undoPasswordAutocompletion() {
        var inputs = document.getElementsByName(
            "PL3bbeec384_security_password_OLD"
        );
        if (inputs) {
            inputs[0].value = "";
        }
    }
IMO a fix would be to change if(inputs) to if(inputs[0])

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH 1.6.7: little bug in admin.js

Post by cmb » Sat Jul 04, 2015 10:52 am

Holger wrote:There's a little bug in admin.js:
Indeed, but I've already fixed it, see http://sourceforge.net/p/cmsimplexh/bugs/22/. Your fix is more efficient, though; feel free to change. :)
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply