Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

owner/user are swapped in document fields

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend, database

Research direction

No files or tests are named. Start by tracing how document and attachment fields are displayed and how document.user_id and document.owner_id are mapped, then verify the stored values before changing names. Done means administrator comments are attributed to the administrator while the student's identity remains distinct.

Written by the indexing model from the issue text.

Description

bug

Se un amministratore aggiunge un commento alla pagina di uno studente, il commento viene attribuito allo studente, non all'amministratore.

Il problema è che l'interfaccia per visualizzare i "document" è la stessa degli "attachment". Ma nei document bisognerebbe utilizzare "owner" invece che "user". Nel database i campi dovrebbero essere stati memorizzati correttamente.

Proposta:
rinominare document.user_id in document.student_id e rinominare document.owner_id in document.user_id.

Dominant language
PHP
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Unipisa/caps

All issues in Unipisa/caps

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.