From 1e45da277b6e28ff65967d38c12b298872efb059 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 01 Aug 2008 17:37:59 -0400
Subject: [PATCH] Added translation functions for the tabs of forms.

---
 interface/lib/classes/listform_actions.inc.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index 7e02066..4a198f5 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -38,8 +38,8 @@
 class listform_actions {
 	
 	private $id;
-	private $idx_key;
-	private $DataRowColor;
+	public $idx_key;
+	public $DataRowColor;
 	public  $SQLExtWhere = '';
 	public  $SQLOrderBy = '';
 	
@@ -82,7 +82,7 @@
 		
 	}
 	
-	private function prepareDataRow($rec)
+	public function prepareDataRow($rec)
     {
 		global $app;
 		
@@ -96,9 +96,9 @@
 		foreach($app->listform->listDef['item'] as $field) {
 			$key = $field['field'];
 			if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
-				if($rec[$key] == 'y' or $rec[$key] == 'n') {
+				if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
 					// Set a additional image variable for bolean fields
-					$rec['_'.$key.'_'] = ($rec[$key] == 'y')?'list_icon_true.png':'list_icon_false.png';
+					$rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
 				}
 				//* substitute value for select field
 				$rec[$key] = @$field['value'][$rec[$key]];

--
Gitblit v1.9.1