Project

General

Profile

Actions

Patch #30971

open

principals_options_for_select does not select user when user id is numeric

Added by Jérôme BATAILLE almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

To fix it : In application Helper L487
convert selected to string if it is an integer

if selected.is_a?(Integer)
  selected_s = selected.to_s
else
  selected_s = selected
end
selected_attribute = ' selected="selected"' if option_value_selected?(element, selected) || element.id.to_s == selected_s
Actions

Also available in: Atom PDF