[Rt-commit] rt branch, 4.0/sort-article-cfs-on-create, created. rt-4.0.1-297-g0f21f4a
Kevin Falcone
falcone at bestpractical.com
Mon Aug 15 16:37:39 EDT 2011
The branch, 4.0/sort-article-cfs-on-create has been created
at 0f21f4af7684f4efb9aef0b0ee4adde3a260a02d (commit)
- Log -----------------------------------------------------------------
commit 0f21f4af7684f4efb9aef0b0ee4adde3a260a02d
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Mon Aug 15 16:35:13 2011 -0400
When sorting of CFs on Classes, obey OCF
Articles fell through to the core CustomFields method that did this, but
since Classes->ArticleCustomFields was custom, it needed fixing.
Updated to resemble Queue->TicketCustomFields().
diff --git a/lib/RT/Class.pm b/lib/RT/Class.pm
index dbd83be..424fd16 100644
--- a/lib/RT/Class.pm
+++ b/lib/RT/Class.pm
@@ -277,6 +277,7 @@ sub ArticleCustomFields {
if ( $self->CurrentUserHasRight('SeeClass') ) {
$cfs->LimitToGlobalOrObjectId( $self->Id );
$cfs->LimitToLookupType( RT::Article->CustomFieldLookupType );
+ $cfs->ApplySortOrder;
}
return ($cfs);
}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list