From 23ec2bb2b14f5bcc526ee9c797b5fbd62860942b Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 25 Mar 2001 08:56:24 +0000 Subject: [PATCH] Update for missing template values --- addressbook/addcategory.php | 2 ++ addressbook/editcategory.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/addressbook/addcategory.php b/addressbook/addcategory.php index 061536f47a..e956ce4b2b 100644 --- a/addressbook/addcategory.php +++ b/addressbook/addcategory.php @@ -41,6 +41,7 @@ if (($submit) && (! $error) && (! $errorcount)) { $t->set_var('message',lang("Category $cat_name has been added !")); } if ((! $submit) && (! $error) && (! $errorcount)) { $t->set_var('message',''); } + $t->set_var('category_list',$c->formated_list('select','all',$cat_parent,'False')); $t->set_var('font',$font); $t->set_var('user_name',$phpgw_info["user"]["fullname"]); $t->set_var('doneurl',$phpgw->link('/addressbook/categories.php')); @@ -49,6 +50,7 @@ $t->set_var('hidden_vars',''); $t->set_var('lang_choose',lang('Choose the category')); $t->set_var('lang_main_cat',lang('Category')); + $t->set_var('lang_select_parent',lang('Select parent category')); $t->set_var('main_cat_list',$c->formated_list('select','mains')); $t->set_var('lang_name',lang('Category name')); diff --git a/addressbook/editcategory.php b/addressbook/editcategory.php index 1e7b8b08e0..67436604fb 100644 --- a/addressbook/editcategory.php +++ b/addressbook/editcategory.php @@ -46,6 +46,7 @@ $cats = $c->return_single($cat_id); + $t->set_var('category_list',$c->formated_list('select','all',$cat_parent,'False')); $t->set_var('font',$font); $t->set_var('user_name',$phpgw_info["user"]["fullname"]); $t->set_var('title_categories',lang('Edit category for')); @@ -57,6 +58,7 @@ $t->set_var('hidden_vars',$hidden_vars); $t->set_var('lang_name',lang('Category name')); $t->set_var('lang_descr',lang('Category description')); + $t->set_var('lang_select_parent',lang('Select parent category')); $cat_id = $cats[0]['id'];