mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Don't autogenerate a blank name
This commit is contained in:
parent
59fe29c1a4
commit
55039e4b31
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ class Person < ActiveRecord::Base
|
||||||
|
|
||||||
def set_public_name
|
def set_public_name
|
||||||
if public_name.blank?
|
if public_name.blank?
|
||||||
self.public_name = "#{first_name} #{last_name}"
|
self.public_name = ""
|
||||||
|
self.public_name = "#{first_name} #{last_name}" if !first_name.blank? && !last_name.blank?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue