Fixed Default Prefix bug

gldtn

Well-known member
After adding some prefix and setting it to selected forums, when going to a forum and trying to set a default prefix, it disables the prefixes on that forum, not letting you set a default.
 
Additional Info:

It's also not possible to set prefixes in the forum editor.

Steps to reproduce:

create a forum, go to edit form, rename the forum, change some options & add a thread prefix.

ALL infos are stored, only thread prefix not

html sourcecode
Code:
<ul id="AvailablePrefixes">
<li><label for="ctrl__1"><input type="checkbox" id="ctrl__1" value="1" name="[]"> Benutzer beobachten</label></li>
</ul>
 

Attachments

  • foo.webp
    foo.webp
    16.9 KB · Views: 11
Found it.

If you want to fix it yourself, edit the admin template forum_edit and change the following code:
Rich (BB code):
<xen:option value="{$prefixId}" selected="in_array({$prefixId}, {$nodePrefixes})">{$title}</xen:option>
to this
Rich (BB code):
<xen:option name="available_prefixes[]" value="{$prefixId}" selected="in_array({$prefixId}, {$nodePrefixes})">{$title}</xen:option>
 
Found it.

If you want to fix it yourself, edit the admin template forum_edit and change the following code:
Rich (BB code):
<xen:option value="{$prefixId}" selected="in_array({$prefixId}, {$nodePrefixes})">{$title}</xen:option>
to this
Rich (BB code):
<xen:option name="available_prefixes[]" value="{$prefixId}" selected="in_array({$prefixId}, {$nodePrefixes})">{$title}</xen:option>

That did it, worked brilliantly. Thanks Kier
 
Top Bottom