Forum OpenACS Development: HEAD /admin/configure Template selection is broken

Request notifications

subsite::get_template_options builds the dropdown list of templates that is used on the /admin/configure page to select the look and feel of the (sub)site. It's supposed to include whatever you have set in the "DefaultMaster" parameter as a selectable option. The option list doesn't contain this current setting.

The list is pre-loaded with "Default" and "Community" options and then the current value of subsite parameter "DefaultTemplate" is used to create a third option that corresponds to the current setting if it is not one of the pre-defined options.

Except... there is no "DefaultTemplate" subsite parameter. I think it's supposed to be "DefaultMaster".

In addition, the current entry should be appended to "master_teplate_options", not "master_template"

Bug and patch: