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

Different language string for phone1 and phone2 entries

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.1
    • 1.5, 1.6, 1.7, 1.8, 1.9
    • Language, Other
    • None
    • MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_19_STABLE

      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"');

            dongsheng Dongsheng Cai
            jballard James Ballard
            Petr Skoda Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.