Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15661

Call to undefined function tag_set_type()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.9.3
    • Component/s: Tags
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      I believe there is a typo bug in tag/manage.php calling an undefined function. See below the diff fixing this bug.

      Index: tag/manage.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/tag/manage.php,v
      retrieving revision 1.7.2.7
      diff -c -r1.7.2.7 manage.php

          • tag/manage.php 2 Apr 2008 06:10:07 -0000 1.7.2.7
          • tag/manage.php 15 Jul 2008 21:18:12 -0000
            ***************
          • 117,123 ****
            foreach ( $new_otags as $new_otag ) {
            if ( $new_otag_id = tag_get_id($new_otag) ) { // tag exists, change the type ! tag_set_type($new_otag_id, 'official'); }

            else

            { tag_add($new_otag, 'official'); }
            — 117,123 ----
            foreach ( $new_otags as $new_otag ) {
            if ( $new_otag_id = tag_get_id($new_otag) ) { // tag exists, change the type ! tag_type_set($new_otag_id, 'official'); } else { tag_add($new_otag, 'official'); }

        Attachments

          Activity

            People

            • Assignee:
              scyrma Mathieu Petit-Clair
              Reporter:
              mixik Daniel Miksik
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08