Don't allow select all in edit/add

This commit is contained in:
Miles Lott 2001-03-25 06:07:00 +00:00
parent fb1aa7062b
commit 32e82f77ef

View File

@ -33,15 +33,17 @@
} }
} }
function cat_option($cat_id='') { function cat_option($cat_id='',$notall=False) {
global $phpgw_info; global $phpgw_info;
// Setup all and none first // Setup all and none first
$cats_link = "<select name=\"cat_id\">"; $cats_link = "<select name=\"cat_id\">";
$cats_link .= "<option value =\"all\""; if (!$notall) {
if ($cat_id=="all") { $cats_link .= "<option value =\"all\"";
$cats_link .= " selected"; if ($cat_id=="all") {
$cats_link .= " selected";
}
$cats_link .= ">".lang("all");
} }
$cats_link .= ">".lang("all");
$cats_link .= "<option value =\"0\""; $cats_link .= "<option value =\"0\"";
if (!$cat_id) { if (!$cat_id) {
@ -258,7 +260,7 @@
$access = $fields["access"]; $access = $fields["access"];
$cat_id = $fields["cat_id"]; $cat_id = $fields["cat_id"];
$cats_link = cat_option($cat_id); $cats_link = cat_option($cat_id,True);
if ($access == 'private') { if ($access == 'private') {
$access_check = ' checked'; $access_check = ' checked';