Jira-integration: make the hours column in WBS screen read only if an order-element is a jira issue
Check if an order-element's code starts with 'JIRA'. if it is, the order-element is imported from jira, so make intbox hours column of WBS(tasks) read only.
This commit is contained in:
parent
cc0614c249
commit
e72948516c
1 changed files with 7 additions and 1 deletions
|
|
@ -1006,7 +1006,7 @@ public abstract class TreeController<T extends ITreeNode<T>> extends
|
|||
public void addHoursCell(final T currentElement) {
|
||||
Intbox intboxHours = buildHoursIntboxFor(currentElement);
|
||||
hoursIntBoxByElement.put(currentElement, intboxHours);
|
||||
if (readOnly) {
|
||||
if (readOnly || codeFromJira) {
|
||||
intboxHours.setDisabled(true);
|
||||
}
|
||||
Treecell cellHours = addCell(intboxHours);
|
||||
|
|
@ -1315,6 +1315,12 @@ public abstract class TreeController<T extends ITreeNode<T>> extends
|
|||
}
|
||||
}
|
||||
|
||||
protected boolean codeFromJira = false;
|
||||
|
||||
public void setCodeFromJira(boolean codeFromJira) {
|
||||
this.codeFromJira = codeFromJira;
|
||||
}
|
||||
|
||||
protected TreeComponent orderElementTreeComponent;
|
||||
|
||||
public void setTreeComponent(TreeComponent orderElementsTree) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue