diff --git a/Innovator/Client/scripts/kanban/js/script.js b/Innovator/Client/scripts/kanban/js/script.js index 163f8a7..886b6cf 100644 --- a/Innovator/Client/scripts/kanban/js/script.js +++ b/Innovator/Client/scripts/kanban/js/script.js @@ -235,11 +235,18 @@ function loadBoards() { // get boardimage var vaultref = item.getProperty("creatorpicture","undefined"); - var fileUrl = "nomanager.png"; - /*if ((vaultref !== "undefined") && (vaultRefTable[vaultref] == undefined)) { - fileUrl = inn.getFileUrl(vaultref.split("?fileId=")[1], 1); + var fileUrl = "../kanban/nomanager.png"; + if ((vaultref !== "undefined") && (vaultRefTable[vaultref] == undefined)) { + try { + fileUrl = inn.getFileUrl(vaultref.split("?fileId=")[1], 1); + vaultRefTable[vaultref] = fileUrl; + } catch(err) { + console.log("Profile Image for " + item.getPropertyAttribute("created_by_id", "keyed_name") + " is malformed. Please choose a different image."); + } + + } else { vaultRefTable[vaultref] = fileUrl; - }*/ + } boardsContentString += "

" + item.getProperty('boardname', 'no name') + "

" + item.getProperty('boarddescription', 'no description') + "
"; boardsContentString += " "; @@ -453,14 +460,16 @@ function loadSingleBoard(boardId, reload) { // get cardimage var vaultref = item.getProperty("managerpicture"); - var fileUrl = "nomanager.png"; + var fileUrl = "../kanban/nomanager.png"; if ((vaultref !== undefined) && (vaultRefTable[vaultref] == undefined)) { - if (inn.getFileUrl(vaultref.split("?fileId=")[1], 1) == undefined) { + try { + fileUrl = inn.getFileUrl(vaultref.split("?fileId=")[1], 1); vaultRefTable[vaultref] = fileUrl; - } else { - vaultRefTable[vaultref] = inn.getFileUrl(vaultref.split("?fileId=")[1], 1); - } - } else if (vaultref == undefined) { + } catch (err) { + console.log("Profile Image for " + item.getPropertyAttribute("manager", "keyed_name") + " is malformed. Please choose a different image."); + } + + } else { vaultRefTable[vaultref] = fileUrl; } diff --git a/README.md b/README.md index b5dd7d5..119fa05 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,19 @@ Adds a user interface to manage tasks and sort them by Stage, Account, Risk ... #### How it works The Kanban-like-task-management project has two interfaces - the Board listing, and the Board details (when you enter a board by double-clicking on it). -## Project Details +## History -**Built Using:** Aras 11.0 SP7 +Release | Notes +--------|-------- +[v1.0.1](https://github.com/ArasLabs/kanban-like-task-management/releases/tag/v1.0.1) | Tested 11.0 SP12, SP15. Tested on Edge, IE, Firefox 60 ESR, Chrome. +[v1.0.0](https://github.com/ArasLabs/kanban-like-task-management/releases/tag/v1.0.0) | First release. Tested on Internet Explorer 11, Firefox 38 ESR, Chrome. -**Browsers Tested:** Internet Explorer 11, Firefox 38 ESR, Chrome +#### Supported Aras Versions -> Though built and tested using Aras 11.0 SP7, this project should function in older releases of Aras 11.0 and Aras 10.0. +Project | Aras +--------|------ +[v1.0.1](https://github.com/ArasLabs/kanban-like-task-management/releases/tag/v1.0.1) | 10.0 SPx, 11.0 SP7+, 11.0 SP12+, 11.0 SP15 +[v1.0.0](https://github.com/ArasLabs/kanban-like-task-management/releases/tag/v1.0.0) | 10.0 SPx, 11.0 SP7; Old Community Board Migration ## Installation