Commit 444f4eb7 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon
Browse files

Bug 1684079: Fix license error when adding resume artefacts

behatnotneeded

Change-Id: Ibc4a4040a8a57c0a2236ee9cd6e9b294ded89062
(cherry picked from commit 038c6bac)
parent b6116957
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1217,6 +1217,16 @@ EOF;
        return $compositeforms;
    }

    public function get_license_artefact() {
        $pi = get_record('artefact',
                         'artefacttype', $this->artefacttype,
                         'owner', $this->owner);
        if (!$pi)
            return null;

        require_once(get_config('docroot') . 'artefact/lib.php');
        return artefact_instance_from_id($pi->id);
    }
}

class ArtefactTypeEmploymenthistory extends ArtefactTypeResumeComposite {