Project

General

Profile

Bug #3180

Array values in settings UI are not displayed correctly after update

Added by Dominic Cleal about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Settings
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Array values in Foreman's settings UI are not rendered correctly after update.
The updated value saves ok but it is displayed without wrapping brackets. This causes failure on next update attempt. One either has to reload the page to get correct value again or write the brackets manually.

Steps to Reproduce:
1. In foreman go to More > Settings > Puppet
2. Choose any of the fields with array, click it to update, press enter to confirm, wait until it gets saved
3. Value is rendered without wrapping []
4. Another attempt to update causes "Value must be an array" error

Expected results:
Should always render arrays in [a, b, c] format.

Associated revisions

Revision be7300f8 (diff)
Added by Tomáš Strachota about 9 years ago

fixes #3180 - displaying array values in settings ui correctly

Revision 9e09f696 (diff)
Added by Tomáš Strachota about 9 years ago

fixes #3180 - displaying array values in settings ui correctly

(cherry picked from commit be7300f828e31bd4ed3a4c0d175965daa94c0a24)

History

#1 Updated by Tomáš Strachota about 9 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Dominic Cleal about 9 years ago

  • Related to Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final added

#3 Updated by Anonymous about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Lukas Zapletal about 9 years ago

  • Related to deleted (Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final)

Also available in: Atom PDF