BUGFIX: table and column names now quoted properly

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@103851 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2010-04-30 05:24:58 +00:00 committed by Sam Minnee
parent 4521d4fabe
commit 83efb8bb63

View File

@ -786,7 +786,7 @@ class Member extends DataObject {
if (self::$title_format) {
$columnsWithTablename = array();
foreach(self::$title_format['columns'] as $column) {
$columnsWithTablename[] = "$tableName.$column";
$columnsWithTablename[] = "\"$tableName\".\"$column\"";
}
return "(\"".join("'".self::$title_format['sep']."'" || $columnsWithTablename)."\")";