Revize 282c9938
Přidáno uživatelem Tomáš Pašek před více než 3 roky(ů)
application/controller/TableController.php | ||
---|---|---|
34 | 34 |
array_push($temp_value->manuscript, $res["manuscript"]); |
35 | 35 |
} |
36 | 36 |
} |
37 |
|
|
38 |
if ($temp_value != null) { |
|
39 |
array_push($output["data"], $temp_value); |
|
40 |
} |
|
37 | 41 |
$output["count"] = count($output["data"]); |
38 | 42 |
if (array_key_exists("page", $_POST) && array_key_exists("items_per_page", $_POST)) { |
39 | 43 |
$output["data"] = array_slice($output["data"], $_POST['page'] * $_POST['items_per_page'], $_POST['items_per_page']); |
... | ... | |
47 | 51 |
$whereQuery = "WHERE"; |
48 | 52 |
if (array_key_exists("lemma", $_POST) && $_POST['lemma'] != "") { |
49 | 53 |
$array['lemma'] = $_POST['lemma']."%"; |
50 |
$whereQuery .= " l.lemma LIKE :lemma AND";
|
|
54 |
$whereQuery .= " upper(l.lemma) LIKE upper(:lemma) AND";
|
|
51 | 55 |
} |
52 | 56 |
if (array_key_exists("word", $_POST) && $_POST['word'] != "") { |
53 | 57 |
$array['word'] = $_POST['word']; |
54 |
$whereQuery .= " w.word = :word AND";
|
|
58 |
$whereQuery .= " upper(w.word) = upper(:word) AND";
|
|
55 | 59 |
} |
56 | 60 |
if (array_key_exists("position1", $_POST) && $_POST['position1'] != "") { |
57 | 61 |
$array['position1'] = $_POST['position1']; |
... | ... | |
118 | 122 |
$tag = substr_replace($tag, $_POST['tag_verb_aspect'], 11, 1); |
119 | 123 |
} |
120 | 124 |
$array['tag'] = $tag; |
121 |
$whereQuery .= " t.tag LIKE :tag";
|
|
125 |
$whereQuery .= " upper(t.tag) LIKE upper(:tag)";
|
|
122 | 126 |
return $whereQuery; |
123 | 127 |
} |
Také k dispozici: Unified diff
Feature #8345 Implementce filterů dat - Server
oprava chyb vracení záznamů