forked from extern/egroupware
Make option dialog use ncat_id not cat_id
This commit is contained in:
parent
7100c51a3a
commit
68df73e563
@ -151,7 +151,7 @@
|
||||
$fields["access"] = 'public';
|
||||
}
|
||||
|
||||
$fields["cat_id"] = $cat_id;
|
||||
$fields["cat_id"] = $ncat_id;
|
||||
|
||||
addressbook_add_entry($phpgw_info["user"]["account_id"],$fields,$fields["access"],$fields["cat_id"]);
|
||||
$ab_id = addressbook_get_lastid();
|
||||
|
@ -158,7 +158,7 @@
|
||||
$fields["access"] = 'public';
|
||||
}
|
||||
|
||||
$fields["cat_id"] = $cat_id;
|
||||
$fields["cat_id"] = $ncat_id;
|
||||
|
||||
$userid = $phpgw_info["user"]["account_id"];
|
||||
|
||||
|
@ -34,10 +34,10 @@
|
||||
}
|
||||
|
||||
// Return a select form element with the categories options in it
|
||||
function cat_option($cat_id='',$notall=False) {
|
||||
function cat_option($cat_id='',$name='cat_id',$notall=False) {
|
||||
global $phpgw_info;
|
||||
// Setup all and none first
|
||||
$cats_link = "<select name=\"cat_id\">";
|
||||
$cats_link = "<select name=\"".$name."\">";
|
||||
if (!$notall) {
|
||||
$cats_link .= "<option value =\"all\"";
|
||||
if ($cat_id=="all") {
|
||||
@ -258,7 +258,7 @@
|
||||
$cat_id = $fields["cat_id"];
|
||||
}
|
||||
|
||||
$cats_link = cat_option($cat_id,True);
|
||||
$cats_link = cat_option($cat_id,'ncat_id',True);
|
||||
|
||||
if ($access == 'private') {
|
||||
$access_check = ' checked';
|
||||
|
@ -186,7 +186,7 @@
|
||||
$t->set_var(cats,lang('Category'));
|
||||
$t->set_var(cats_url,$phpgw->link("/addressbook/index.php",
|
||||
"sort=$sort&order=$order&filter=$filter&start=$start&query=$query&cat_id=$cat_id"));
|
||||
$t->set_var(cats_link,cat_option($cat_id));
|
||||
$t->set_var(cats_link,cat_option($cat_id,'cat_id'));
|
||||
$t->set_var(lang_cats,lang('Select'));
|
||||
$t->set_var("lang_addressbook",lang("Address book"));
|
||||
$t->set_var("th_bg",$phpgw_info["theme"]["th_bg"]);
|
||||
|
Loading…
Reference in New Issue
Block a user