Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1182238
D2.id21.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 16, 1:29 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Fri, Oct 17, 1:29 AM (9 h, 45 m)
Engine
blob
Format
Raw Data
Handle
767691
Attached To
D2: INP-1380 - Use named parameters in error messages and add new parameter {field}
D2.id21.diff
View Options
Index: core/kernel/utility/validator.php
===================================================================
--- core/kernel/utility/validator.php
+++ core/kernel/utility/validator.php
@@ -1,6 +1,6 @@
<?php
/**
-* @version $Id: validator.php 16080 2014-09-19 15:23:59Z alex $
+* @version $Id: validator.php 15522 2012-08-20 15:25:51Z alex $
* @package In-Portal
* @copyright Copyright (C) 1997 - 2011 Intechnic. All rights reserved.
* @license GNU/GPL
@@ -438,7 +438,15 @@
$params = array();
}
- $field_phrase = $this->Application->isAdmin ? 'la_fld_' . $field : 'lu_fld_' . $field;
+ $field_options = $this->dataSource->GetFieldOptions($field);
+
+ if ( $this->Application->isAdmin ) {
+ $field_phrase = !empty($field_options['admin_label']) ? $field_options['admin_label'] : 'la_fld_' . $field;
+ }
+ else {
+ $field_phrase = !empty($field_options['front_label']) ? $field_options['front_label'] : 'lu_fld_' . $field;
+ }
+
$params['field'] = $this->Application->Phrase($field_phrase);
foreach ( $params as $param_name => $param_value ) {
Event Timeline
Log In to Comment