Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Flipped first and lastname (bug #2)

  • Loading branch information...
commit 060507d3cbdd0ea2dddb866fd9421aa0e2d7a876 1 parent e644945
@ralli authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 migrate_from_bugzilla.rake
View
6 migrate_from_bugzilla.rake
@@ -93,7 +93,7 @@ module ActiveRecord
7 => 'list', # Multiselection list
8 => 'date', # Date
}
-
+y
@Cueball
Cueball added a note

Bug filed...spurious 'y' character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
RELATION_TYPE_MAPPING = {
0 => IssueRelation::TYPE_DUPLICATES, # duplicate of
1 => IssueRelation::TYPE_RELATES, # related to
@@ -129,13 +129,13 @@ module ActiveRecord
def lastname
s = read_attribute(:realname)
return 'unknown' if(s.blank?)
- return s.split(/[ ,]+/).first
+ return s.split(/[ ,]+/)[-1]
end
def firstname
s = read_attribute(:realname)
return 'unknown' if(s.blank?)
- return s.split(/[ ,]+/)[-1]
+ return s.split(/[ ,]+/).first
end
end
@Cueball

Bug filed...spurious 'y' character.

Please sign in to comment.
Something went wrong with that request. Please try again.