mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
corrected some leftover from the last change (app_session and not more HTTP_POST_VARS) in the template-test function show
This commit is contained in:
parent
59f2990851
commit
905c960a5a
@ -391,11 +391,12 @@
|
||||
);
|
||||
if (!$msg && isset($post_vars['values']) && !isset($post_vars['vals']))
|
||||
{
|
||||
$cont = $this->etemplate->process_show($post_vars);
|
||||
$cont = $post_vars['cont'];
|
||||
$this->etemplate->process_show($cont); // need to be done manually as name is set to $this->etemplate object
|
||||
for ($r = 1; list($key,$val) = @each($cont); ++$r)
|
||||
{
|
||||
$vals["A$r"] = $key;
|
||||
$vals["B$r"] = $val;
|
||||
$vals["@$r"] = $key;
|
||||
$vals["A$r"] = $val;
|
||||
}
|
||||
$show->data[$show->rows]['A']['name'] = 'etemplate.editor.values';
|
||||
$show->data[$show->rows]['A']['size'] = 'vals';
|
||||
@ -405,11 +406,11 @@
|
||||
{
|
||||
$show->data[$show->rows]['A']['name'] = $this->etemplate;
|
||||
$vals = $post_vars['vals'];
|
||||
$olds = unserialize(stripslashes($post_vars['olds']));
|
||||
$olds = $post_vars['olds']; //unserialize(stripslashes($post_vars['olds']));
|
||||
|
||||
for ($r = 1; isset($vals["B$r"]); ++$r)
|
||||
for ($r = 1; isset($vals["A$r"]); ++$r)
|
||||
{
|
||||
$content['cont'][$olds["A$r"]] = $vals["B$r"];
|
||||
$content['cont'][$olds["@$r"]] = $vals["A$r"];
|
||||
}
|
||||
}
|
||||
$show->exec('etemplate.editor.show',$content,array(),$no_buttons,array('olds' => $vals),'');
|
||||
|
Loading…
Reference in New Issue
Block a user