Trim existing custom fields with an upgrade script

Hi,

it’s not a first time I see this. we should clean db during upgrade.

Bcced bug tracker.On Sun, Aug 21, 2011 at 6:42 PM, Kevin Falcone falcone@bestpractical.com wrote:

On Sat, Aug 20, 2011 at 09:43:52PM -0400, Jeff Blaine wrote:

SOLVED

RT Bug, IMO

Values for a CF type of a "Select multiple values"
cannot have spaces at the end RT chokes on the
edit page (Modify.html) and will not mark them as
selected.

RT 3.8.9 and later no longer let you make this error.
They clean up your admin input.

-kevin

On 8/19/2011 11:34 AM, Jeff Blaine wrote:

RT 3.8.10

In edit mode (Modify.html), there is some serious funkiness
going on with fields that are “Select multiple”.

Is this a known problem?

I’m not sure where to begin explaining it. If you screw
around with it a bit, ctrl-click adding a few values,
then saving the ticket, deselecting some + save, etc
you will see what I mean.

The state of things is being lost here and there.

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA September 26 & 27, 2011
  • San Francisco, CA, USA October 18 & 19, 2011
  • Washington DC, USA October 31 & November 1, 2011
  • Melbourne VIC, Australia November 28 & 29, 2011
  • Barcelona, Spain November 28 & 29, 2011

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA September 26 & 27, 2011
  • San Francisco, CA, USA October 18 & 19, 2011
  • Washington DC, USA October 31 & November 1, 2011
  • Melbourne VIC, Australia November 28 & 29, 2011
  • Barcelona, Spain November 28 & 29, 2011

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Chicago, IL, USA — September 26 & 27, 2011
  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Melbourne VIC, Australia — November 28 & 29, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Best regards, Ruslan.