* [bug#61097,done,0.5h,0h] Get target module language to rawModule.
This commit is contained in:
@@ -210,7 +210,7 @@ class form extends fixer
|
||||
*/
|
||||
private function processRequiredFields(array $configObject): array
|
||||
{
|
||||
global $app, $config;
|
||||
global $app, $config, $lang;
|
||||
|
||||
$module = $app->getModuleName();
|
||||
$method = $app->getMethodName();
|
||||
@@ -233,7 +233,11 @@ class form extends fixer
|
||||
$field = trim($field);
|
||||
if(!isset($configObject[$field])) continue;
|
||||
|
||||
if(!isset($configObject[$field]['skipRequired'])) $configObject[$field]['required'] = true;
|
||||
if(!isset($configObject[$field]['skipRequired']))
|
||||
{
|
||||
$configObject[$field]['required'] = true;
|
||||
if(empty($lang->{$app->rawModule}->$field)) $lang->{$app->rawModule}->$field = $lang->$module->$field;
|
||||
}
|
||||
}
|
||||
|
||||
return $configObject;
|
||||
|
||||
Reference in New Issue
Block a user