[Rt-commit] r16166 - in rt/3.8/trunk: .
elacour at bestpractical.com
elacour at bestpractical.com
Tue Sep 30 11:56:19 EDT 2008
Author: elacour
Date: Tue Sep 30 11:56:19 2008
New Revision: 16166
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html
Log:
r10811 at datura: manu | 2008-09-30 17:56:08 +0200
Array is set but empty, so check number of element to determine if we need to diplsay values sources.
Modified: rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html
==============================================================================
--- rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html (original)
+++ rt/3.8/trunk/share/html/Admin/CustomFields/Modify.html Tue Sep 30 11:56:19 2008
@@ -70,7 +70,7 @@
Default => $CustomFieldObj->TypeComposite, &>
</td></tr>
-% if ( $CustomFieldObj->Id and $CustomFieldObj->IsSelectionType and RT->Config->Get('CustomFieldValuesSources') ) {
+% if ( $CustomFieldObj->Id and $CustomFieldObj->IsSelectionType and RT->Config->Get('CustomFieldValuesSources') and ( scalar(@{RT->Config->Get('CustomFieldValuesSources')}) > 0 ) ) {
<tr><td class="label"><&|/l&>Field values source:</&></td><td>
<& /Admin/Elements/EditCustomFieldValuesSource, CustomField => $CustomFieldObj &>
</td></tr>
More information about the Rt-commit
mailing list