fix compile error

This commit is contained in:
anhefti 2019-03-07 12:27:11 +01:00
parent b74c711ebb
commit f758bde077

View file

@ -80,7 +80,8 @@ public class RestService {
throw new IllegalArgumentException("ActionDefinition needs to define a restCallType to use this action");
}
return this.getBuilder(action.definition.restCallType)
final RestCall<?>.RestCallBuilder builder = this.getBuilder(action.definition.restCallType);
return builder
.withURIVariable(
API.PARAM_MODEL_ID,
action.pageContext().getAttribute(AttributeKeys.ENTITY_ID))