Skip to content

Commit

Permalink
Issue #61: Fix get notice links
Browse files Browse the repository at this point in the history
  • Loading branch information
petersistrom committed Feb 8, 2024
1 parent f60fe23 commit ea79358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/table/acknowledged_notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace local_sitenotice\table;

use local_sitenotice\persistent\noticelink;
use table_sql;
use renderable;
use local_sitenotice\helper;
Expand Down Expand Up @@ -103,7 +104,7 @@ protected function define_table_columns() {
'idnumber' => get_string('idnumber'),
);
// Add each hyperlink as a header.
$hlinks = helper::retrieve_notice_links($this->noticeid);
$hlinks = noticelink::get_notice_link_records($this->noticeid);
foreach ($hlinks as $link) {
$cols[$link->id] = "$link->text ($link->link)";
}
Expand Down

0 comments on commit ea79358

Please sign in to comment.