Although they are different entries in the database, phone1 and phone2 both use get_string('phone'). When looking to integrate Moodle with SMS services this makes it difficult to ensure that the user enters the number in the correct field.
Can strings phone1 and phone2 be introduced? In addition to language strings the following files in Moodle1.9 make reference to get_string('phone'):
admin\uploaduser_form.php
$mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"');
$mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
file\resource.class.php
'userphone1' => array('langstr' => get_string('phone').' 1',
'userphone2' => array('langstr' => get_string('phone').' 2',
repository\resource.class.php
'userphone1' => array('langstr' => get_string('phone').' 1',
'userphone2' => array('langstr' => get_string('phone').' 2',
user\editlib.php
$mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"');
$mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
- caused a regression
-
MDL-51427 Incorrect usage of language strings for user fields 'phone1' and 'phone2'
- Closed