jira-integration: Disable code edition in task pop-up for JIRA issues
JIRA issues code is not editable in the WBS and it shouldn't be editable in the task edition pop-up either. FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
parent
7a26294060
commit
f5d8984c5b
2 changed files with 12 additions and 1 deletions
|
|
@ -84,4 +84,15 @@ public class DetailsOrderElementController extends
|
|||
return Util.getMoneyFormat();
|
||||
}
|
||||
|
||||
public boolean isCodeDisabled() {
|
||||
if (isCodeAutogenerated()) {
|
||||
return true;
|
||||
}
|
||||
OrderElement orderElement = orderElementModel.getOrderElement();
|
||||
if (orderElement == null) {
|
||||
return false;
|
||||
}
|
||||
return orderElement.isJiraIssue();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
<textbox id="code"
|
||||
value="@{detailsController.orderElement.code}"
|
||||
constraint="no empty:${i18n:_('cannot be empty')}" width="150px"
|
||||
disabled="@{detailsController.isCodeAutogenerated}" />
|
||||
disabled="@{detailsController.codeDisabled}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Starting date')}" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue