Moodle

Call to undefined function tag_set_type()

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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 )
        Unknown macro: { 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'); } }

Activity

Hide
Mathieu Petit-Clair added a comment -

Thanks for finding this one. Patch committed.

Show
Mathieu Petit-Clair added a comment - Thanks for finding this one. Patch committed.
Hide
Petr Škoda (skodak) added a comment -

reviewed, thanks

Show
Petr Škoda (skodak) added a comment - reviewed, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: