* user: change company to newCompany.

This commit is contained in:
liugang
2023-11-23 14:35:34 +08:00
parent ec9870f081
commit fc6569a326
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ function changeAddCompany(event)
const $inputGroup = $('[name="company"]').closest('.picker-box');
if($inputGroup.length == 0) return;
$('[name="company"]').zui('picker').destroy();
$inputGroup.replaceWith("<input name='company' id='company' class='form-control'/>");
$inputGroup.replaceWith("<input name='newCompany' id='newCompany' class='form-control'/>");
}
else
{
+1 -1
View File
@@ -368,7 +368,7 @@ class userModel extends model
{
if(empty($companyName))
{
dao::$errors['company'][] = $this->lang->user->error->companyEmpty;
dao::$errors['newCompany'][] = sprintf($this->lang->error->notempty, $this->lang->user->company);
return 0;
}