|
|
|
@ -30,9 +30,9 @@ public class RequirementUrlResolver implements EntityUrlResolver {
|
|
|
|
|
Requirement req = (Requirement)entity;
|
|
|
|
|
|
|
|
|
|
if (req.getKind() == Constants.REQ_TYPE_MATERIAL) {
|
|
|
|
|
return defaultUrl + Constants.URL_MAP.get(req) + "material/?select=" + String.valueOf(req.getId());
|
|
|
|
|
return defaultUrl + Constants.URL_MAP.get(req.getClass()) + "material/?select=" + String.valueOf(req.getId());
|
|
|
|
|
} else {
|
|
|
|
|
return defaultUrl + Constants.URL_MAP.get(req) + "services/?select=" + String.valueOf(req.getId());
|
|
|
|
|
return defaultUrl + Constants.URL_MAP.get(req.getClass()) + "services/?select=" + String.valueOf(req.getId());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|