updated file upload

This commit is contained in:
Roland Gruber 2004-10-23 09:52:59 +00:00
parent 965bec63da
commit f792d03a85
1 changed files with 7 additions and 6 deletions

View File

@ -71,6 +71,7 @@ class inetOrgPerson extends baseModule {
$this->messages['title'][1] = array('ERROR', _('Account %s: inetOrgPerson_title'), _('Please enter a valid title!')); $this->messages['title'][1] = array('ERROR', _('Account %s: inetOrgPerson_title'), _('Please enter a valid title!'));
$this->messages['employeeType'][0] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!')); $this->messages['employeeType'][0] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!'));
$this->messages['employeeType'][1] = array('ERROR', _('Account %s: inetOrgPerson_type'), _('Please enter a valid employee type!')); $this->messages['employeeType'][1] = array('ERROR', _('Account %s: inetOrgPerson_type'), _('Please enter a valid employee type!'));
$this->messages['cn'][0] = array('ERROR', _('Account %s: inetOrgPerson_cn'), _('Please enter a valid common name!'));
} }
/** /**
@ -131,7 +132,7 @@ class inetOrgPerson extends baseModule {
), ),
array( array(
'name' => 'inetOrgPerson_description', 'name' => 'inetOrgPerson_description',
'description' => _('Desription'), 'description' => _('Description'),
'help' => 'description', 'help' => 'description',
'example' => _('Temp, contract until december') 'example' => _('Temp, contract until december')
), ),
@ -157,7 +158,7 @@ class inetOrgPerson extends baseModule {
'name' => 'inetOrgPerson_postalCode', 'name' => 'inetOrgPerson_postalCode',
'description' => _('Postal code'), 'description' => _('Postal code'),
'help' => 'postalCode', 'help' => 'postalCode',
'example' => _('12345') 'example' => '12345'
), ),
array( array(
'name' => 'inetOrgPerson_address', 'name' => 'inetOrgPerson_address',
@ -169,19 +170,19 @@ class inetOrgPerson extends baseModule {
'name' => 'inetOrgPerson_telephone', 'name' => 'inetOrgPerson_telephone',
'description' => _('Telephone number'), 'description' => _('Telephone number'),
'help' => 'telephoneNumber', 'help' => 'telephoneNumber',
'example' => _('123-123-1234') 'example' => '123-123-1234'
), ),
array( array(
'name' => 'inetOrgPerson_mobile', 'name' => 'inetOrgPerson_mobile',
'description' => _('Mobile number'), 'description' => _('Mobile number'),
'help' => 'mobileTelephoneNumber', 'help' => 'mobileTelephoneNumber',
'example' => _('123-123-1234') 'example' => '123-123-1234'
), ),
array( array(
'name' => 'inetOrgPerson_fax', 'name' => 'inetOrgPerson_fax',
'description' => _('Fax number'), 'description' => _('Fax number'),
'help' => 'facsimileTelephoneNumber', 'help' => 'facsimileTelephoneNumber',
'example' => _('123-123-1234') 'example' => '123-123-1234'
), ),
array( array(
'name' => 'inetOrgPerson_email', 'name' => 'inetOrgPerson_email',
@ -553,7 +554,7 @@ class inetOrgPerson extends baseModule {
$partialAccounts[$i]['cn'] = $rawAccounts[$i][$ids['inetOrgPerson_cn']]; $partialAccounts[$i]['cn'] = $rawAccounts[$i][$ids['inetOrgPerson_cn']];
} }
else { else {
$errMsg = $this->messages['email'][1]; $errMsg = $this->messages['cn'][0];
array_push($errMsg, array($i)); array_push($errMsg, array($i));
$triggered_messages[] = $errMsg; $triggered_messages[] = $errMsg;
} }