Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 104... Línea 104...
104
    validateDropData(dropdata) {
104
    validateDropData(dropdata) {
105
        if (dropdata?.type !== 'cm') {
105
        if (dropdata?.type !== 'cm') {
106
            return false;
106
            return false;
107
        }
107
        }
108
        // Prevent delegated sections loops.
108
        // Prevent delegated sections loops.
109
        if (dropdata?.delegatesection === true) {
109
        if (dropdata?.hasdelegatedsection === true) {
110
            const mycminfo = this.reactive.get('cm', this.id);
110
            const mycminfo = this.reactive.get('cm', this.id);
111
            const mysection = this.reactive.get('section', mycminfo.sectionid);
111
            const mysection = this.reactive.get('section', mycminfo.sectionid);
112
            if (mysection?.component !== null) {
112
            if (mysection?.component !== null) {
113
                return false;
113
                return false;
114
            }
114
            }