Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/com_content/src/Controller/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ public function save($key = null, $urlVar = 'a_id')
{
// Redirect to the article page, use the redirect url set from parent controller
}
elseif ($this->getTask() === 'apply')
{
// Do not redirect
}
else
{
// If ok, redirect to the return page.
Expand Down
6 changes: 5 additions & 1 deletion components/com_content/tmpl/form/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@
<?php echo HTMLHelper::_('form.token'); ?>
</fieldset>
<div class="mb-2">
<button type="button" class="btn btn-primary" data-submit-task="article.save">
<button type="button" class="btn btn-primary" data-submit-task="article.apply">
<span class="icon-check" aria-hidden="true"></span>
<?php echo Text::_('JSAVE'); ?>
</button>
<button type="button" class="btn btn-primary" data-submit-task="article.save">
<span class="icon-check" aria-hidden="true"></span>
<?php echo Text::_('JSAVEANDCLOSE'); ?>
</button>
<?php if ($this->showSaveAsCopy) : ?>
<button type="button" class="btn btn-primary" data-submit-task="article.save2copy">
<span class="icon-copy" aria-hidden="true"></span>
Expand Down
1 change: 1 addition & 0 deletions language/en-GB/joomla.ini
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ JREQUIRED="Required"
JRESET="Reset"
JSAVE="Save"
JSAVEASCOPY="Save As Copy"
JSAVEANDCLOSE="Save & Close"
JSELECT="Select"
JSHOW="Show"
JSHOWPASSWORD="Show Password"
Expand Down