Skip to content

Commit

Permalink
chore: projectId getting method changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumas committed Jan 8, 2025
1 parent ea70d52 commit 9faa632
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ch.sbb.polarion.extension.pdf_exporter.widgets;

import ch.sbb.polarion.extension.pdf_exporter.rest.model.conversion.DocumentType;
import com.polarion.alm.projects.internal.model.Project;
import com.polarion.alm.projects.model.IUniqueObject;
import com.polarion.alm.server.api.model.rp.widget.AbstractWidgetRenderer;
import com.polarion.alm.server.api.model.rp.widget.BottomQueryLinksBuilder;
import com.polarion.alm.shared.api.model.ModelObject;
Expand Down Expand Up @@ -196,7 +196,7 @@ private String getSpace(@NotNull ModelObject item) {
}

private String getProject(@NotNull ModelObject item) {
return item.getOldApi().getValue("project") instanceof Project project ? project.getId() : "";
return ((IUniqueObject) item.getOldApi()).getProjectId();
}

private String getValue(@NotNull ModelObject item, @NotNull String fieldName) {
Expand Down

0 comments on commit 9faa632

Please sign in to comment.