Yaga's EditContentTimeout perk not defaulting to "Default"
First off, I want to say that yaga is an excellent addition to Vanilla. Very powerful piece of software. Nice work.
I ran into a problem after adding some ranks that stem from the fact that the EditContentTimeout perk option box does not default to "Default". The default option is actually 0, which is deny all editing. So for example, when the admin user earns a rank, yaga overrides Garden.EditContentTimeout and sets it to 0, even if that admin user is trying to set the original config option in the vanilla dashboard. The result is that Garden.EditContentTimeout can never be set to anything other than 0.
I just moved the "Default" option first before the rest of the options. This solved the problem.
--- library/functions.render.php +++ library/functions.render.php @@ -141,7 +141,7 @@ ); } // Add a default option - $Options = $Options + array('' => T('Default')); + $Options = array('' => T('Default')) + $Options; $Form = Gdn::Controller()->Form; $Fieldname = 'Conf' . $Config;