Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Parametrizar año académico #75

Open
sergioviera opened this issue Nov 6, 2023 · 0 comments
Open

Parametrizar año académico #75

sergioviera opened this issue Nov 6, 2023 · 0 comments

Comments

@sergioviera
Copy link
Member

Modificar script de SQL en el archivo protected/controllers/ReportesController.php en la línea 38.

        'totalEncuestas'=>
                Yii::app()->db->createCommand('SELECT COUNT(1) as total FROM asignatura_profesor ap join incripciones i on ap.asignatura_id = i.asignatura_id where ap.id = '.$asignatura_profesor_id.' and i.anio_academico = 2019')->queryAll(),

Está harcodeado el anio_academico en 2019!

Le cambié el valor a 2023 para que funcione, pero habría que parametrizarlo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant