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

Error exporting custom fields in the qualifier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      Translated with Google. Sorry.

      Steps to reproduce the error by using capital letters in the short name of the custom fields.

      1. - Add new custom field.
      2. - Add a name to the first field "Short name (must be unique)" with the first letter capitalized. For this example I use "Test".
      3. - Fill the rest as desired.
      4. - Go to "Grade > General Settings" and add the name previously configured in the "short name" respecting the capital.
      5. - Go to qualifier within a course and exporting, for instance, excell.
      6. - Displays the following error (with debug enabled): "Notice: Undefined property: stdClass :: $ customfield_Test in / var / www / html / moodle / grade / lib.php on line 2753" and the contents of the fields are not shown.

      Thank you

      Español:

      Pasos a seguir para reproducir el error al utilizar mayúsculas en el nombre corto de los campos personalizados.

      1.- Añadir nuevo campo personalizado.
      2.- Añadir un nombre al primer campo "Short name (must be unique)" con la primera letra en mayúscula. Para este ejemplo utilizo "Test"
      3.- Cumplimentar el resto como se desee.
      4.- Ir a "Grade > General Settings" y añadir el nombre previamente configurado en el "short name" respetando la mayúscula.
      5.- Ir al calificador dentro de un curso y exportar, por ejemplo, a excell.
      6.- Muestra el siguiente error (con el debug activado): "Notice: Undefined property: stdClass::$customfield_Test in /var/www/html/moodle/grade/lib.php on line 2753" y el contenido de los campos no se muestra.

      Muchas gracias.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              quar Christian Rojas
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: