Index: branches/5.2.x/core/kernel/utility/validator.php
===================================================================
diff -u -r16569 -r16708
--- branches/5.2.x/core/kernel/utility/validator.php (.../validator.php) (revision 16569)
+++ branches/5.2.x/core/kernel/utility/validator.php (.../validator.php) (revision 16708)
@@ -1,6 +1,6 @@
' . current($title_info) . '';
}
- $error_msg = ' Validation failed in prefix - ' . $this->dataSource->Prefix . ' (' . implode('; ', $item_info) . '),
- FieldErrors follow (look at items with "pseudo" key set)
- You may ignore this notice if submitted data really has a validation error';
- trigger_error(trim($error_msg), E_USER_NOTICE);
+ $item_info[] = 'Temp Mode: ' . ($this->dataSource->IsTempTable() ? 'Yes' : 'No') . '';
- $this->Application->Debugger->dumpVars($this->FieldErrors);
+ $raw_errors = array_filter($this->FieldErrors, function ($error_params) {
+ return isset($error_params['pseudo']);
+ });
+
+ $error_msg = <<%s item (%s).
+Validation errors:
+
%s+You may ignore this notice if submitted data really has a validation error. +HTML; + $error_msg = sprintf( + $error_msg, + $this->dataSource->getPrefixSpecial(), + implode('; ', $item_info), + print_r($raw_errors, true) + ); + + trigger_error(trim($error_msg), E_USER_NOTICE); } return $global_res;