~ubuntu-branches/ubuntu/oneiric/request-tracker3.8/oneiric-updates

« back to all changes in this revision

Viewing changes to lib/RT/CustomFields_Overlay.pm

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves, Dominic Hargreaves, Christian Perrier
  • Date: 2009-06-16 21:46:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616214659-5ji9k1n3qyc2br3n
Tags: 3.8.4-1
[ Dominic Hargreaves ]
* Add missing comma in Depends (fixes FTBFS on etch)
* Update debconf translations: pt.po, ja.po, sv.po, it.po, cs.po, ru.po
  (Closes: #519885, #519922, #520603, #520759, #521199, #521926)
* Document preference for not using SQLite in production
  (Closes: #512750)

[ Christian Perrier ]
* Debconf templates and debian/control reviewed by the debian-l10n-
  english team as part of the Smith review project.
  (Closes: #522367, #520959)
* [Debconf translation updates]
  - Japanese. Closes: #522896
  - German. Closes: #520958
  - Portuguese. Closes: #523481
  - Galician. Closes: #524256
  - Galician. Closes: #524256
  - Spanish. Closes: #524449
  - Italian. Closes: #524715
  - Russian. Closes: #524894
  - Swedish. Closes: #525171
  - French. Closes: #525281

[ Dominic Hargreaves ]
* Don't tell dbconfig to comment out unused variables, since this
  breaks MySQL and Postgres database configuration (Closes: #523090)
* Update Standards-Version (no changes)
* Switch dependency on sysklogd to rsyslog (Closes: #526914)
* New upstream release; includes
  - Minor security fix (Closes: #533069)
  - Add missing Postgres index (Closes: #512653)
* Patch webmux.pl to provide a better error message when the wrong
  major version of RT is in @INC (for example in a mod_perl context).
  (Closes: #518692)
* Add some more example Exim 4 configuration (Closes: #238345)
* Don't apply database ACLs in databases managed by dbconfig-common.
* Remove unused ACL patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
sub Next {
183
183
    my $self = shift;
184
184
    
185
 
    
186
185
    my $CF = $self->SUPER::Next();
187
 
    if ((defined($CF)) and (ref($CF))) {
188
 
 
189
 
        if ($CF->CurrentUserHasRight('SeeCustomField')) {
190
 
            return($CF);
191
 
        }
192
 
        
193
 
        #If the user doesn't have the right to show this queue
194
 
        else {  
195
 
            return($self->Next());
196
 
        }
197
 
    }
198
 
    #if there never was any queue
199
 
    else {
200
 
        return(undef);
201
 
    }   
202
 
    
203
 
}
 
186
    return $CF unless $CF;
 
187
 
 
188
    $CF->SetContextOject( $self->ContextObject );
 
189
 
 
190
    return $self->Next unless $CF->CurrentUserHasRight('SeeCustomField');
 
191
    return $CF;
 
192
}
 
193
 
 
194
sub SetContextObject {
 
195
    my $self = shift;
 
196
    return $self->{'context_object'} = shift;
 
197
}
 
198
  
 
199
sub ContextObject {
 
200
    my $self = shift;
 
201
    return $self->{'context_object'};
 
202
}
 
203
 
 
204
sub NewItem {
 
205
    my $self = shift;
 
206
    my $res = RT::CustomField->new($self->CurrentUser);
 
207
    $res->SetContextObject($self->ContextObject);
 
208
    return $res;
 
209
}
 
210
 
204
211
# }}}
205
212
 
206
213
sub LimitToLookupType  {
255
262
    #$self->OrderBy( ALIAS => $class_cfs , FIELD => "SortOrder", ORDER => 'ASC');
256
263
 
257
264
}
258
 
  
 
265
 
259
266
1;
260
267