[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-98-gd939415
Emannuel Lacour
elacour at bestpractical.com
Thu Jun 24 08:33:54 EDT 2010
The branch, 3.8-trunk has been updated
via d9394159614ef51c575aa0af82921385905928f4 (commit)
from 79599d4d8880050b93ac9e4d1b774b82685309d6 (commit)
Summary of changes:
share/html/Search/Elements/EditSearches | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit d9394159614ef51c575aa0af82921385905928f4
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date: Thu Jun 24 14:32:06 2010 +0200
Don't say a saved search has been deleted if it's not true because user has no right to do it.
diff --git a/share/html/Search/Elements/EditSearches b/share/html/Search/Elements/EditSearches
index 62871fd..07139a6 100644
--- a/share/html/Search/Elements/EditSearches
+++ b/share/html/Search/Elements/EditSearches
@@ -180,7 +180,11 @@ elsif ( $ARGS{'SavedSearchDelete'} ) {
my ($container, $id) = _parse_saved_search( $SavedSearch->{'Id'} );
if ( $container && $container->id ) {
# We have the object the entry is an attribute on; delete the entry...
- $container->Attributes->DeleteEntry( Name => 'SavedSearch', id => $id );
+ my ($val, $msg) = $container->Attributes->DeleteEntry( Name => 'SavedSearch', id => $id );
+ unless ( $val ) {
+ push @results, $msg;
+ return @results;
+ }
}
$SavedSearch->{'Id'} = 'new';
$SavedSearch->{'Object'} = undef;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list