X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=862032859bcbb9dd39784587da74a31335b2c7b7;hb=7561718ee5113232ce917f63085d272884b0929c;hp=d72b8b18638a1caae2cf1338fccd32f1f198e00e;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index d72b8b18..86203285 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -387,7 +387,7 @@ function check_row($label, $name, $value=null, $submit_on_change=false, $title=f function radio($label, $name, $value, $selected=null, $submit_on_change=false) { if (!isset($selected)) - $selected = get_post($name) == $value; + $selected = get_post($name) === (string)$value; if ($submit_on_change === true) $submit_on_change = @@ -943,26 +943,6 @@ function supplier_credit_row($supplier, $credit, $parms='') ."", $parms); } -/* - Edit transaction link to be used in transaction inquires -*/ -function edit_trans_link($trans_type, $trans_no, $url='') -{ - global $path_to_root, $trans_editors; - - if (!$url) $url = @$trans_editors[$trans_type]; - - if (!$trans_no || !$url) - return ''; - - if (is_closed_trans($trans_type, $trans_no)) { - return set_icon(ICON_CLOSED, _('Closed')); - } else { - $link_text = user_graphic_links() ? set_icon(ICON_EDIT, _('Edit')) : _('Edit'); - return "$link_text"; - } -} - function bank_balance_row($bank_acc, $parms='') { global $path_to_root;