From: Janusz Dobrowolski Date: Thu, 19 Jun 2008 15:24:30 +0000 (+0000) Subject: Small bugfixes X-Git-Tag: v2.4.2~19^2~2000 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=735c0e9c258dfd9f8f6b16615c2c431b99a86a29;p=fa-stable.git Small bugfixes --- diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 375498d0..6766415e 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -101,10 +101,10 @@ $opts = array( // default options $Ajax->activate($name); } if ($txt == '') { - if ($spec_option === false) - $limit = ' LIMIT 1'; + if ($spec_option === false && $selected_id==null) + $limit = ' LIMIT 1'; else - $opts['where'][] = $valfield . "='". get_post($name, $spec_id)."'"; + $opts['where'][] = $valfield . "='". get_post($name, $spec_id)."'"; } else if ($txt != '*') {