Fixed hint for lists not using search/select submition.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 24 Jul 2008 16:49:12 +0000 (16:49 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 24 Jul 2008 16:49:12 +0000 (16:49 +0000)
includes/ui/ui_lists.inc

index 67d95b97219f84953d69e2b0b9f0cd36a45e3c92..86968c9fbe644a6c13336ae6dc7a082fb5902af2 100644 (file)
@@ -72,7 +72,7 @@ $opts = array(                // default options
                        '' : _('Press Space tab for search pattern entry');
 
        if ($opts['box_hint'] === null)
-               $opts['box_hint'] = $search_box ?
+               $opts['box_hint'] = $search_box && $search_submit != false ?
                        ($by_id ? _('Enter code fragment to search or * for all')
                        : _('Enter description fragment to search or * for all')) :'';