Skip to content

Commit

Permalink
# [#29059] Smart Search - Filter Edit does not check the checked_out
Browse files Browse the repository at this point in the history
status to set the toolbar buttons. Thanks Michael
  • Loading branch information
Michael Babker authored and infograf768 committed Sep 5, 2012
1 parent 2ec994c commit 0c31ef9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions administrator/components/com_finder/views/filter/view.html.php
Expand Up @@ -85,16 +85,20 @@ protected function addToolbar()
}
else
{
// Since it's an existing record, check the edit permission.
if ($canDo->get('core.edit'))
// Can't save the record if it's checked out.
if (!$checkedOut)
{
JToolbarHelper::apply('filter.apply');
JToolbarHelper::save('filter.save');

// We can save this record, but check the create permission to see if we can return to make a new one.
if ($canDo->get('core.create'))
// Since it's an existing record, check the edit permission.
if ($canDo->get('core.edit'))
{
JToolbarHelper::save2new('filter.save2new');
JToolbarHelper::apply('filter.apply');
JToolbarHelper::save('filter.save');

// We can save this record, but check the create permission to see if we can return to make a new one.
if ($canDo->get('core.create'))
{
JToolbarHelper::save2new('filter.save2new');
}
}
}
// If an existing item, can save as a copy
Expand Down
3 changes: 2 additions & 1 deletion installation/CHANGELOG
Expand Up @@ -27,7 +27,8 @@ $ -> Language fix or change
! -> Note

05-Sept-2012 Jean-Marie Simonet
# [#29009] Drop the unused usertype column from #__users and #__sessions. Thanks Michael
# [#29009] Drop the unused usertype column from #__users and #__sessions. Thanks Michael
# [#29059] Smart Search - Filter Edit does not check the checked_out status to set the toolbar buttons. Thanks Michael

04-Sept-2012 Jean-Marie Simonet
# [#24628] htmlspecialchars() and multiple menu modules of the same menu. Thanks Rouven
Expand Down

0 comments on commit 0c31ef9

Please sign in to comment.