X-Git-Url: https://git.cyclocoop.org/?p=garradin.git;a=blobdiff_plain;f=include%2Flib.template.php;h=87eb677a031d2f9a8c7f1847e78df3dbb524ff13;hp=6f9f8e7cf824ca9ace90480ca654068d27da56bb;hb=f7ee0ae730f47bfef173c394fa4db71a22dece61;hpb=1ab3343a95ed3ef4958d91dfbf49372dce8a092e diff --git a/include/lib.template.php b/include/lib.template.php index 6f9f8e7..87eb677 100644 --- a/include/lib.template.php +++ b/include/lib.template.php @@ -336,8 +336,10 @@ function tpl_select_compte($params) $name = $params['name']; $comptes = $params['comptes']; $selected = isset($params['data'][$params['name']]) ? $params['data'][$params['name']] : utils::post($name); + $id = isset($params['id']) ? $params['id'] : "f_$name"; + $form_name = isset($params['form_name']) ? $params['form_name'] : $name; - $out = ''; foreach ($comptes as $compte) { @@ -601,4 +603,4 @@ $tpl->register_modifier('format_bytes', function ($size) { $tpl->register_modifier('strftime_fr', 'Garradin\tpl_strftime_fr'); $tpl->register_modifier('date_fr', 'Garradin\tpl_date_fr'); -?> \ No newline at end of file +?>