diff --git a/modules/publication/ajax/getData.php b/modules/publication/ajax/getData.php index 3fd0dfd8752..942a7a7ca00 100644 --- a/modules/publication/ajax/getData.php +++ b/modules/publication/ajax/getData.php @@ -145,7 +145,8 @@ function getData($db) : array */ function getProjectData($db, $user, $id) : array { - $query = 'SELECT Title, Description, pr.Name as project, datePublication, '. + $query = 'SELECT Title, Description, ' . + 'p.project as project, pr.Name as projectName, datePublication, '. 'journal, link, publishingStatus, DateProposed, '. 'pc.Name as LeadInvestigator, pc.Email as LeadInvestigatorEmail, '. 'PublicationStatusID, UserID, RejectedReason '. @@ -199,6 +200,7 @@ function getProjectData($db, $user, $id) : array 'title' => $title, 'description' => $description, 'project' => $result['project'], + 'projectName' => $result['projectName'], 'datePublication' => $datePublication, 'journal' => $journal, 'link' => $link, diff --git a/modules/publication/jsx/viewProject.js b/modules/publication/jsx/viewProject.js index b479ba224f9..6c9401fce06 100644 --- a/modules/publication/jsx/viewProject.js +++ b/modules/publication/jsx/viewProject.js @@ -110,6 +110,7 @@ class ViewProject extends React.Component { title: data.title, description: data.description, project: data.project, + projectName: data.projectName, publishingStatus: data.publishingStatus, datePublication: data.datePublication, journal: data.journal, @@ -304,7 +305,7 @@ class ViewProject extends React.Component {