forked from extern/egroupware
fix for not editable/deletable custom-fields with with certain special chars in there name, field-name was not url-encoded
This commit is contained in:
parent
2c06187479
commit
587b3e218f
@ -101,10 +101,20 @@
|
|||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_var('cfield',$title);
|
$GLOBALS['phpgw']->template->set_var('cfield',$title);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',"menuaction=addressbook.uifields.edit&field=$field&start=$start&query=$query&sort=$sort&order=$order&filter=$filter"));
|
$params = array(
|
||||||
|
'menuaction' => 'addressbook.uifields.edit',
|
||||||
|
'field' => urlencode($field),
|
||||||
|
'start' => $start,
|
||||||
|
'query' => $query,
|
||||||
|
'sort' => $sort,
|
||||||
|
'order' => $order,
|
||||||
|
'filter' => $filter
|
||||||
|
);
|
||||||
|
$GLOBALS['phpgw']->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$params));
|
||||||
$GLOBALS['phpgw']->template->set_var('lang_edit_entry',lang('Edit'));
|
$GLOBALS['phpgw']->template->set_var('lang_edit_entry',lang('Edit'));
|
||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',"menuaction=addressbook.uifields.delete&field=$field&start=$start&query=$query&sort=$sort&order=$order&filter=$filter"));
|
$params['menuaction'] = 'addressbook.uifields.delete';
|
||||||
|
$GLOBALS['phpgw']->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$params));
|
||||||
$GLOBALS['phpgw']->template->set_var('lang_delete_entry',lang('Delete'));
|
$GLOBALS['phpgw']->template->set_var('lang_delete_entry',lang('Delete'));
|
||||||
$GLOBALS['phpgw']->template->parse('list','field_list',True);
|
$GLOBALS['phpgw']->template->parse('list','field_list',True);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user