mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #93 from simonwelsh/fulltextsearch-fix
BUGFIX: Removes duplicate create_table_options that caused preg_match()
This commit is contained in:
commit
9f385971f3
@ -53,7 +53,6 @@ class FulltextSearchable extends DataExtension {
|
||||
Object::add_static_var($class, 'create_table_options', array('MySQLDatabase' => 'ENGINE=MyISAM'), true);
|
||||
}
|
||||
Object::add_extension($class, "FulltextSearchable('{$defaultColumns[$class]}')");
|
||||
Object::add_static_var($class, 'create_table_options', array('MySQLDatabase' => 'ENGINE=MyISAM'));
|
||||
} else {
|
||||
throw new Exception("FulltextSearchable::enable() I don't know the default search columns for class '$class'");
|
||||
}
|
||||
@ -100,4 +99,4 @@ class FulltextSearchable extends DataExtension {
|
||||
return self::$searchable_classes;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user