Skip to content
Snippets Groups Projects
Commit a3929659 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

work with custom values

parent e56e3786
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,31 @@ sub get_all_x
$tt;
}
sub fetch_custom
{
my $db= shift;
my $cfid= shift;
my $cfty= shift || 'Issue';
my $res= $db->get_all_x ('custom_values',
[ "custom_field_id=? and customized_type=? and value<>''", $cfid, $cfty ]);
$res;
}
sub insert_custom
{
my $db= shift;
my $cfid= shift;
my $cfty= shift || 'Issue';
my $cfref= shift;
my $cfval= shift;
my $res= $db->insert ('custom_values',
{ customized_type => $cfty, customized_id => $cfref,
custom_field_id => $cfid, value => $cfval, } );
$res;
}
sub insert
{
my $self= shift;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment