LP#1942220: fix bug introduced in LI search results
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 13 Dec 2021 15:11:48 +0000 (10:11 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 13 Dec 2021 15:11:48 +0000 (10:11 -0500)
Should display the LI worksheet link only if a PO is
linked to the LI.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/search/lineitem-results.component.html

index f52b046..f902df8 100644 (file)
@@ -60,7 +60,7 @@
       <a routerLink="/staff/catalog/record/{{lineitem.eg_bib_id()}}"
          target="_blank" i18n>Catalog</a></li>
     <li>
-      <ng-container>
+      <ng-container *ngIf="lineitem.purchase_order()">
         <a routerLink="/staff/acq/po/{{lineitem.purchase_order().id()}}/lineitem/{{lineitem.id()}}/worksheet"
           target="_blank" i18n>Worksheet</a>
       </ng-container>