* [story#54148,doing,0.1h,2h] add checkSettings.
This commit is contained in:
@@ -749,6 +749,15 @@ class pivotState
|
||||
$errors[$key] = 'emptyGroupError';
|
||||
continue;
|
||||
}
|
||||
|
||||
if($key === 'columns')
|
||||
{
|
||||
foreach($value as $index => $column)
|
||||
{
|
||||
if(empty($column['field'])) $errors[$key][$index]['field'] = 'emptyColumnFieldError';
|
||||
if($column['showOrigin'] === 0 && empty($column['stat'])) $errors[$key][$index]['stat'] = 'emptyColumnStatError';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $errors;
|
||||
|
||||
Reference in New Issue
Block a user