mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fixed order of arguments.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64109 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c26ccdffa0
commit
8a1ab89b84
@ -511,7 +511,7 @@ HTML;
|
||||
* @return string
|
||||
*/
|
||||
public function name_to_label($fieldName) {
|
||||
if(strpos('.', $fieldName) !== false) {
|
||||
if(strpos($fieldName, '.') !== false) {
|
||||
$parts = explode('.', $fieldName);
|
||||
$label = $parts[count($parts)-2] . ' ' . $parts[count($parts)-1];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user