mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #05323
[Bug 803955] Re: Overridden site admin fields not disabled unless also stored in database
** Changed in: mahara
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/803955
Title:
Overridden site admin fields not disabled unless also stored in
database
Status in Mahara ePortfolio:
Fix Committed
Bug description:
If you explicitly set a field in config.php, then it /should/ be disabled in admin/site/options.php
This currently only happens if that setting is also stored in the database.
As a result, users believe that they can change the option, but when
they then try to, the option is unset, the field greyed out, and there
is no message informing them that they can't change the setting.
This appears to stem from the way that the $OVERRIDDEN variable is
filled in lib/mahara.php->load_config().
At present, this grabs all config options set in the database.
For any option in the database, it then checks for an override, and if it's already present in $CFG, it adds this to the OVERRIDDEN array. If it isn't present in $CFG already, it adds it to $CFG so that it's accessible.
Have a patch to submit for this.
Affects 1.4.x and master
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/803955/+subscriptions
References