Skip to content
Browse files

BUGFIX: Postgres's LIKE is case sensitive - change the search string.

  • Loading branch information...
1 parent e207b7a commit 296f38dd0b5c71ea3b1e39daa29a106a3ba2f6cc @mateusz mateusz committed Nov 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/DataObjectPickerTest.php
View
4 tests/DataObjectPickerTest.php
@@ -22,7 +22,7 @@ public function testSuggestions() {
$field = new DataObjectPicker('OwnerID', "Owner");
$field->setConfig('classToPick', 'DogOwner');
- $suggestions = $field->Suggest(new SS_HTTPRequest('GET', 'someurl', array('request' => 'ma')));
+ $suggestions = $field->Suggest(new SS_HTTPRequest('GET', 'someurl', array('request' => 'Ma')));
$this->assertContains('Martin', $suggestions, 'Suggest Martin.');
$this->assertContains('Mateusz', $suggestions, 'Suggest Mateusz.');
$this->assertNotContains('Wolfgang', $suggestions, 'Do not suggest Wolfgang.');
@@ -82,4 +82,4 @@ function getEditForm($id = null) {
function Link() {
return 'DogController';
}
-}
+}

0 comments on commit 296f38d

Please sign in to comment.
Something went wrong with that request. Please try again.