[2.4 RC1] Category selector presented without submit button
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
b2evolution |
Fix Released
|
Medium
|
Tilman Blumenbach |
Bug Description
This bug lived all the way from 1.6 through 2.4.
First appearance: http://
Second appearance: http://
Description:
It is possible to select multiple categories for view. In the 1.x.x system it needed an extra line in the skin, in 2.4 it is a setting in the Categories widget. It generates selection boxes before the categories and radiobuttons for ANY ANY BUT and ALL selection. What is omittesd is the start of the <form> tag and the submit button plus the closing </form> tag.
Solution :
For both the 1.10 series as the 2.4 series I made a hack which consists of this code before the category list:
/blog/inc/
PHP:
// start First part of Add Missing SubmitButton hack by Afwas
if( $this->
{ // We want to add form fields:
}
// end first part of hack
and this codepiece after the category list:
PHP:
<!-- Second part of Add Missing SubmitButton hack by Afwas -->
<br /><br />
<!-- End hack by Afwas -->
(This is taken from the 2.4 version, In 1.10 the $param is called 'list' and the global $Blog variable must be included.)
Also reported at http://
Changed in b2evolution: | |
importance: | Undecided → Medium |
After a bug report from this hack I have a new proposed version for the 2.4 series only. Replace the first snippet by: disp_params[ 'use_form' ] )
$bblogUrl = $Blog-> gen_blogurl( );
echo' <form action= "'.$bblogUrl. '" method="post">';
// start First part of Add Missing SubmitButton hack by Afwas
if( $this->
{ // We want to add form fields:
}
// end first part of hack