Issue Details (XML | Word | Printable)

Key: MDL-16929
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jerome Mouneyrac
Reporter: Ralf Hilgenstock
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Bulk user export - import problem; wrong export string.

Created: 19/Oct/08 04:27 AM   Updated: 18/Mar/09 02:28 AM
Return to search
Component/s: Administration
Affects Version/s: 1.9.3
Fix Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 2.0

File Attachments: 1. Text File MDL-16929.patch (0.7 kB)

Issue Links:
Duplicate
 

Participants: Eloy Lafuente (stronk7), Jerome Mouneyrac, Petr Skoda and Ralf Hilgenstock
Security Level: None
QA Assignee: Petr Skoda
Resolved date: 22/Oct/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE, MOODLE_20_STABLE


 Description  « Hide
 user_bulk_download.php

Instaed of $v->name it should be $v-shortname

 if ($extrafields = get_records_select('user_info_field')) {
   foreach ($extrafields as $n=>$v){
     $fields['profile_field_'.$v->shortname] = 'profile_field_'.$v->name;
   }
 }

It should be

 if ($extrafields = get_records_select('user_info_field')) {
   foreach ($extrafields as $n=>$v){
     $fields['profile_field_'.$v->shortname] = 'profile_field_'.$v->shortname;
   }
 }


Error and solution found by Lars Kobbe

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jerome Mouneyrac committed 1 file to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 22/Oct/08 09:32 AM
MDL-16929: fix bulk user download function. (the shortname column title is now profile_field_"shortname")
MODIFY admin/user/user_bulk_download.php   Rev. 1.1.2.3    (+2 -2 lines)
Jerome Mouneyrac committed 1 file to 'Moodle CVS' - 22/Oct/08 09:33 AM
MDL-16929: fix bulk user download function. (the shortname column title is now profile_field_"shortname"), merged from 19
MODIFY admin/user/user_bulk_download.php   Rev. 1.5    (+2 -2 lines)