Fix regression when editing html source
This commit is contained in:
parent
3b6d6eec9a
commit
3485d0b4e5
@ -1857,7 +1857,14 @@ if (! GETPOST('hide_websitemenu'))
|
|||||||
if ($action != 'addcontainer')
|
if ($action != 'addcontainer')
|
||||||
{
|
{
|
||||||
$out='';
|
$out='';
|
||||||
$out.='<select name="pageid" id="pageid" class="minwidth200 maxwidth300"'.(($atleastonepage && $action != 'editsource')?'':' disabled="disabled"').'>';
|
if ($atleastonepage && $action != 'editsource')
|
||||||
|
{
|
||||||
|
$out.='<select name="pageid" id="pageid" class="minwidth200 maxwidth300">';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$out.='<select name="pageidbis" id="pageid" class="minwidth200 maxwidth300" disabled="disabled">';
|
||||||
|
}
|
||||||
if ($atleastonepage)
|
if ($atleastonepage)
|
||||||
{
|
{
|
||||||
if (empty($pageid) && $action != 'createcontainer') // Page id is not defined, we try to take one
|
if (empty($pageid) && $action != 'createcontainer') // Page id is not defined, we try to take one
|
||||||
@ -1884,7 +1891,15 @@ if (! GETPOST('hide_websitemenu'))
|
|||||||
}
|
}
|
||||||
else $out.='<option value="-1"> </option>';
|
else $out.='<option value="-1"> </option>';
|
||||||
$out.='</select>';
|
$out.='</select>';
|
||||||
$out.=ajax_combobox('pageid');
|
if ($atleastonepage && $action != 'editsource')
|
||||||
|
{
|
||||||
|
$out.=ajax_combobox('pageid');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$out.='<input type="hidden" name="pageid" value="'.$pageid.'">';
|
||||||
|
$out.=ajax_combobox('pageid');
|
||||||
|
}
|
||||||
print $out;
|
print $out;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user