this fixes the hierarchy for searches.

pull/46/head
Nils Kenneweg 12 years ago
parent 3faa1da003
commit 7162f911ea
  1. 9
      public/javascripts/openproject.js

@ -328,12 +328,9 @@ window.OpenProject = (function ($) {
});
result = result.map(function (obj) {
if (typeof obj.text === "undefined" && typeof project !== "undefined") {
return {
id : project.id,
text : project.hname,
project : project
};
if (typeof obj.text === "undefined" && typeof obj.project !== "undefined") {
obj.text = obj.project.hname;
return obj;
}
return obj;

Loading…
Cancel
Save