Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Course aliases #9

Description

@migueldemoura

To avoid repeating courses, we should use aliases. A common example is Computer Science: LEIC-A, LEIC-T, MEIC-A, MEIC-T all stand for a similar course.

Temporary fix for ISTSI\Auth\Fenix\Controller:login:

// Get Fenix info

$aliasesMEBiol = ['MicroBio', 'MBiotec'];

if (in_array($course, $aliasesMEBiol)) {
	$course = 'MEBiol';
}

// Persist to database

This replaces the non-supported acronym with a supported one before adding them to the database. A proper solution would involve using db relationships between courses.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions