Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt
Commits
40478732
Commit
40478732
authored
Jun 04, 2014
by
Alex Vandiver
Browse files
Provide a better error message for loading OCFVs on an invalid CF
parent
b7a8c03f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/RT/ObjectCustomFieldValue.pm
View file @
40478732
...
...
@@ -140,6 +140,8 @@ sub LoadByCols {
if
(
$args
{
CustomField
}
)
{
$cf
=
RT::
CustomField
->
new
(
$self
->
CurrentUser
);
$cf
->
Load
(
$args
{
CustomField
}
);
return
(
0
,
$self
->
loc
("
Cannot load custom field [_1]
",
$args
{
CustomField
}))
unless
$cf
->
id
;
if
(
$cf
->
Type
&&
$cf
->
Type
eq
'
IPAddressRange
'
)
{
my
(
$sIP
,
$eIP
)
=
$cf
->
ParseIPRange
(
$args
{'
Content
'}
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment