Skip to content

Commit 30348f1

Browse files
committed
Fixed broken images in inline lists (DNS manager records).
1 parent 56a2d59 commit 30348f1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

interface/lib/classes/plugin_listview.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function onShow() {
2828
// $app->listform->listDef["page_params"] = "&id=".$app->tform_actions->id."&next_tab=".$_SESSION["s"]["form"]["tab"];
2929
$app->listform->listDef["page_params"] = "&id=".$this->form->id."&next_tab=".$_SESSION["s"]["form"]["tab"];
3030
$listTpl->setVar('parent_id',$this->form->id);
31+
$listTpl->setVar('theme', $_SESSION['s']['theme']);
3132

3233
// Generate the SQL for searching
3334
if($app->listform->listDef["auth"] != 'no') {
@@ -73,6 +74,11 @@ function onShow() {
7374
foreach($app->listform->listDef["item"] as $field) {
7475
$key = $field["field"];
7576
if($field['formtype'] == "SELECT") {
77+
if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
78+
// Set a additional image variable for bolean fields
79+
$rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
80+
}
81+
//* substitute value for select field
7682
$rec[$key] = $field['value'][$rec[$key]];
7783
}
7884
// Create a lowercase version of every item

0 commit comments

Comments
 (0)