<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi all,<div><br></div><div>i thing the bug can be resolved with a simple patch to /usr/share/redmine/app/helpers/settings_helper.rb,:</div><div><br></div><div>def setting_multiselect(setting, choices, options={})</div><div>    setting_values = Setting.send(setting)</div><div>    setting_values = [] unless setting_values.is_a?(Array)</div><div><br></div><div>    setting_label(setting, options) +</div><div>      hidden_field_tag("settings[#{setting}][]", '') +</div><div>      choices.collect do |choice|</div><div>        text, value = (<a href="http://choice.is">choice.is</a>_a?(Array) ? choice : [choice, choice])</div><div>        content_tag('label',</div><div>          check_box_tag("settings[#{setting}][]", value, Setting.send(setting).include?(value)) + text.to_s,</div><div>          :class => 'block'</div><div>        )</div><div>      end.join</div><div><br></div><div>Replace the last line end.join by end.reduce(:<<)  :</div><div><br></div><div>the setting_multiselect function become :</div><div><br></div><div>def setting_multiselect(setting, choices, options={})</div><div>    setting_values = Setting.send(setting)</div><div>    setting_values = [] unless setting_values.is_a?(Array)</div><div><br></div><div>    setting_label(setting, options) +</div><div>      hidden_field_tag("settings[#{setting}][]", '') +</div><div>      choices.collect do |choice|</div><div>        text, value = (<a href="http://choice.is">choice.is</a>_a?(Array) ? choice : [choice, choice])</div><div>        content_tag('label',</div><div>          check_box_tag("settings[#{setting}][]", value, Setting.send(setting).include?(value)) + text.to_s,</div><div>          :class => 'block'</div><div>        )</div><div>      end.reduce(:<<) <br><div><br class="webkit-block-placeholder"></div><div>il you think this is acceptable solution, is the package maintainer can make a patch and a new package ?</div><div><br></div><div>Thans</div><div><br></div><div>PS: Sorry for my poor english. ;)</div><div><br></div><div apple-content-edited="true"><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Guillaume Pancak</div><div><a href="mailto:guillaume@pancak.com">guillaume@pancak.com</a></div><div><br></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
</div>
<br></div></body></html>