• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Default Prefix bug

gldtn

Well-known member
#1
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.
 
R

ragtek

Guest
#5
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

Kier

XenForo Developer
Staff member
#7
Found it.

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

bambua

Well-known member
#8
Found it.

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