Project

General

Profile

Actions

Defect #7490

closed

issue's custom field string length check

Added by Hisafumi Kamezono almost 14 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
2011-01-29
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

In Ruby 1.8, a String is always just a collection of bytes.

in, app/models/custom_value.rb

value.length show byte number.

I rewrote there in value.chars.length.

Is it suitable?

  • My Ruby version : 1.8.6
  • My redmine version : 1.1.0
  • My database version : MySQL 5.0

Related issues

Is duplicate of Redmine - Defect #6568: Custom field min_length and max_length checks and multibyte stringsClosed2010-10-04

Actions
Actions #1

Updated by Jean-Philippe Lang over 12 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate
Actions

Also available in: Atom PDF