fix viewing of additional data after saving

This commit is contained in:
John Woodlock
2012-05-29 12:05:37 +10:00
parent 7282d3fe7d
commit 25bbd36ee1
3 changed files with 7 additions and 6 deletions
@@ -433,9 +433,9 @@ public class ReadExtraDataAndReportingServiceImpl implements
rsch.setColumnLength(rsmd.getInt("data_length"));
rsch.setColumnDisplayType(rsmd.getString("display_type"));
allowedListId = rsmd.getInt("allowed_list_id");
if (allowedListId != null) {
if (allowedListId > 0) {
logger.info("allowedListId != null: Column: " + rsch.getColumnName());
//logger.info("allowedListId != null: Column: " + rsch.getColumnName());
sql = "select v.`name` from stretchydata_allowed_value v where allowed_list_id = "
+ allowedListId + " order by id";
ResultSet rsValues = db_statement2.executeQuery(sql);