Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Publication] Fix for auto-selecting Project in edit #9187

Merged
merged 4 commits into from
Apr 16, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions modules/publication/ajax/getData.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,13 @@ 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, datePublication, '.
'journal, link, publishingStatus, DateProposed, '.
'pc.Name as LeadInvestigator, pc.Email as LeadInvestigatorEmail, '.
'PublicationStatusID, UserID, RejectedReason '.
'FROM publication p '.
'LEFT JOIN publication_collaborator pc '.
'ON p.LeadInvestigatorID = pc.PublicationCollaboratorID '.
'LEFT JOIN Project pr '.
'ON p.project = pr.ProjectID '.
'WHERE p.PublicationID=:pid ';
$result = $db->pselectRow(
$query,
Expand Down
Loading