Commit 67eed8be authored by Peter Walter's avatar Peter Walter
Browse files

deal with case of Nobody in Particular in last commit

parent 75ce2325
...@@ -532,6 +532,7 @@ function init() { ...@@ -532,6 +532,7 @@ function init() {
var owners = getOwners(); var owners = getOwners();
var owner; var owner;
var button; var button;
var firstname;
container = document.querySelector('div.ticket-info-people table tr td.value'); container = document.querySelector('div.ticket-info-people table tr td.value');
if (!container) { if (!container) {
return; return;
...@@ -541,7 +542,7 @@ function init() { ...@@ -541,7 +542,7 @@ function init() {
if (owners[owner]) { if (owners[owner]) {
button = insertLink( button = insertLink(
container, container,
owner.split(' ',1)[0] + ' ' + owner.split(' ',1)[1][0], // shorten name (firstname = owner.split(' ',1)[0]) + (firstname!=='Nobody' ? (' ' + owner.split(' ',2)[1][0]) : ''), // shorten name
buildLink( buildLink(
getModifyLink({'Owner':owners[owner],'ForceOwnerChange':1}), getModifyLink({'Owner':owners[owner],'ForceOwnerChange':1}),
refreshElement('#body') refreshElement('#body')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment