X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FType.php;h=ece56c100a291710c1794456c0e98e0bf0212095;hb=51daafaadd025703b2f8d6e3d27898e3768908f9;hp=5192000e2e67e0b9abc2d3f29dbb8a0483e56ceb;hpb=10c5b975bac2283796e1461ceebc2c7888e9f1e6;p=civicrm-core.git diff --git a/CRM/Utils/Type.php b/CRM/Utils/Type.php index 5192000e2e..ece56c100a 100644 --- a/CRM/Utils/Type.php +++ b/CRM/Utils/Type.php @@ -158,8 +158,7 @@ class CRM_Utils_Type { break; case 'Positive': - // the below 2 are for custom fields of this type - // CRM-8925 + // CRM-8925 the 3 below are for custom fields of this type case 'Country': case 'StateProvince': // Checked for multi valued state/country value @@ -185,6 +184,12 @@ class CRM_Utils_Type { } break; + case 'File': + if (CRM_Utils_Rule::positiveInteger($data)) { + return $data; + } + break; + case 'Link': if (CRM_Utils_Rule::url($data = trim($data))) { return $data;