BUG: Publishing Tab visible on edit reply, even if publishing option disabled

DMTGMBH
DMTGMBH
  • DMTGMBH
  • 9 months ago

com_communityanswers > views > replyform > tmpl > edit.php

1. Tabs replace

            <ul class="nav nav-tabs">
                <li class="active"><a href="#editor" data-toggle="tab"><?php echo JText::_('COM_COMMUNITYANSWERS_POST_REPLY') ?></a></li>
                    <li><a href="#publishing" data-toggle="tab"><?php echo JText::_('COM_COMMUNITYANSWERS_PUBLISHING') ?></a></li>
            </ul>

with

<ul class="nav nav-tabs">
       <li class="active"><a href="#editor" data-toggle="tab"><?php echo JText::_('COM_COMMUNITYANSWERS_POST_REPLY') ?></a></li>
       <?php if($showPublishingOptions):?>
             <li><a href="#publishing" data-toggle="tab"><?php echo JText::_('COM_COMMUNITYANSWERS_PUBLISHING') ?></a></li>
       <?php endif;?>
</ul>

 

2. Content replace

                <div class="tab-pane" id="publishing">

with

                   <?php if($showPublishingOptions):?>
                <div class="tab-pane" id="publishing">

3. Content replace

                 
                <input type="hidden" name="task" value="" />

with

                <?php endif;?>

                <input type="hidden" name="task" value="" />

 

Green lines are inserted.

Best regards,

Jürgen


Access to viewing replies is restricted.
Showing 1 of 1 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai