mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Don't allow select all in edit/add
This commit is contained in:
parent
fb1aa7062b
commit
32e82f77ef
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user