File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,7 @@ use MooX::Types::MooseLike::Base qw/:all/;
2525
2626extends ' GADS::Column' ;
2727
28- with ' GADS::Role::Presentation::Column::Person' ;
29-
30- our @person_properties = qw/ id email username firstname surname freetext1 freetext2 organisation department_id team_id title value/ ;
28+ our @person_properties = qw/ id email username firstname surname freetext1 freetext2 organisation department_id team_id title value deleted/ ;
3129
3230has set_filter => (
3331 is => ' rw' ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ use namespace::clean;
2929extends ' GADS::Datum' ;
3030
3131with ' GADS::Role::Presentation::Datum::Person' ;
32+ with ' GADS::DateTime' ;
3233
3334after set_value => sub {
3435 my ($self , $value , %options ) = @_ ;
@@ -169,6 +170,7 @@ has value_hash => (
169170 team_id => $value -> {team_id },
170171 title => $value -> {title },
171172 value => $value -> {value },
173+ deleted => $value -> {deleted },
172174 };
173175 }
174176 elsif ($value ) {
@@ -377,11 +379,11 @@ sub _build_for_code
377379 team => $_ -> {team },
378380 title => $_ -> {title },
379381 text => $_ -> {value },
382+ deleted => GADS::DateTime::parse_datetime($_ -> {deleted })-> epoch,
380383 }
381384 } @{$self -> value_hash};
382385
383386 $self -> column-> multivalue || @values > 1 ? \@values : $values [0];
384387}
385388
3863891;
387-
You can’t perform that action at this time.
0 commit comments