RTC: Work Item Editor Presentation Attribute "hideIfEndpointEmpty" does not work in the web-ui
All,
I was trying to hide a presentation as long as a certain link type is empty for a given work item. According to article 130 (jazz.net/library/article/130), I configured a property with key="hideIfEndpointEmpty" for the editor presentation.
Unfortunately, this does not work in the web UI (RTC 4.0.2).
I think the reason why this does not work is in the JavaScript which handles this property:
JavaScript Snippet from WorkItemProxyClient.js (/com.ibm.team.workitem.web/resources/cache/internal/WorkItemProxyClient.js). According to FireBug, this is starting at line 955:
The if statement in the first line checks if the property's value has been set to "true", while in the next line the value is split in tokens using "/" as delimiter. According to Article 130, the intended value of this property is the ID of the enpoint, so the if statement is wrong. It should only test for a non-null value and then proceed with splitting the endpoint ID into tokens.
Any chance that this will be fixed in the near future?
Thanks!
Markus
I was trying to hide a presentation as long as a certain link type is empty for a given work item. According to article 130 (jazz.net/library/article/130), I configured a property with key="hideIfEndpointEmpty" for the editor presentation.
Unfortunately, this does not work in the web UI (RTC 4.0.2).
I think the reason why this does not work is in the JavaScript which handles this property:
JavaScript Snippet from WorkItemProxyClient.js (/com.ibm.team.workitem.web/resources/cache/internal/WorkItemProxyClient.js). According to FireBug, this is starting at line 955:
if(propertyMap.hideIfEndpointEmpty == "true") { var endpointArray = propertyMap.hideIfEndpointEmpty.split("/"); if(endpointArray && endpointArray.length > 0) { ...
Any chance that this will be fixed in the near future?
Thanks!
Markus