Gleichzeitig Suchen und Sortieren im vtigerCRM 5.4.0

  • Beitrags-Autor:
  • Beitrags-Kategorie:EDV / vTiger
  • Beitrags-Kommentare:0 Kommentare

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384

Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700

Warning: foreach() argument must be of type array|object, null given in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700

Warning: foreach() argument must be of type array|object, null given in /home/users/stefanwarnat/www/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

Hallo,

Heute gibt es einen kleinen Fix für ein Problem, welches ich diese Woche lösen musste. Dabei war es für mich relativ unerklärlich, weshalb dieses Problem bisher niemandem aufgefallen ist.

Sobald man die erweiterte Suche innerhalb eines Modules nutze, wird dadurch die Sortier-Funktion „zerstört“, sodass man die Ergebnislisten nur in der Standardsortierung betrachten kann.

Meine Lösung deckt auch nur 95% der Module ab.
In den Dokumenten, Kalender, eMails dürfte er keine Auswirkungen haben, bzw. nichts kaputt machen, was nicht schon kaputt ist.

Um diesen Bug zu beheben sind folgende Änderungen an Dateien notwendig:

Datei: include/QueryGenerator/Querygenerator.php

Folgende Zeilen suchen:

[php]
$json = new Zend_Json();
$advft_criteria = $_REQUEST[‚advft_criteria‘];
if(!empty($advft_criteria)) $advft_criteria = $json->decode($advft_criteria);
$advft_criteria_groups = $_REQUEST[‚advft_criteria_groups‘];
if(!empty($advft_criteria_groups)) $advft_criteria_groups = $json->decode($advft_criteria_groups);
[/php]

Durch folgendes ersetzen:
[php]

/* changed by swarnat – Sort with advanced search START */
$json = new Zend_Json();
if(!empty($_REQUEST[‚advft_criteria‘])) {
if(substr($_REQUEST[‚advft_criteria‘], 0, 1) == "[") {
$advft_criteria = $_REQUEST[‚advft_criteria‘];
} else {
$advft_criteria = base64_decode($_REQUEST[‚advft_criteria‘]);
$_REQUEST[‚advft_criteria‘] = $advft_criteria;
}
}
if(!empty($advft_criteria)) $advft_criteria = $json->decode($advft_criteria);

if(!empty($_REQUEST[‚advft_criteria_groups‘])) {
if(substr($_REQUEST[‚advft_criteria_groups‘], 0, 1) == "[") {
$advft_criteria_groups = $_REQUEST[‚advft_criteria_groups‘];
} else {
$advft_criteria_groups = base64_decode($_REQUEST[‚advft_criteria_groups‘]);
$_REQUEST[‚advft_criteria_groups‘] = $advft_criteria_groups;
}
}
if(!empty($advft_criteria_groups)) $advft_criteria_groups = $json->decode($advft_criteria_groups);
/* changed by swarnat – Sort with advanced search END */
[/php]

Datei: include/utils/SearchUtils.php

Suchen:
[php]
$urlString .= ‚&advft_criteria=‘.$advft_criteria.’&advft_criteria_groups=‘.$advft_criteria_groups.’&searchtype=advance‘;
[/php]

Ersetzen mit:
[php]

/* changed by swarnat – Sort with advanced search START */
$urlString .= ‚&advft_criteria=‘.base64_encode($advft_criteria).’&advft_criteria_groups=‘.base64_encode($advft_criteria_groups).’&searchtype=advance‘;
/* changed by swarnat – Sort with advanced search END */
[/php]

Stefan

Schreibe einen Kommentar