Changeset 1771
- Timestamp:
- 05/26/16 16:35:15 (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/List.pm
r1410 r1771 29 29 30 30 my @objects = $base->list_objects($otype); 31 if (my $term = $c->req->param('term')) { 32 @objects = grep { /\E$term\Q/ } @objects; 33 } 31 34 32 35 $c->stash->{data} = \@objects; 36 #[ map { { label => $_ } } @objects ]; 33 37 34 38 } -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm
r1739 r1771 126 126 } 127 127 128 =head2 getObjectFromOKey ($okey) 129 130 Return the object from the db internal key 131 132 =cut 133 134 sub getObjectFromOKey { 135 my ($self, $okey) = @_; 136 137 my $findobj = $self->{_db}->prepare_cached(q{ 138 select * from objects_table where ikey = ? 139 }); 140 141 $findobj->execute($okey); 142 143 my $res = $findobj->fetchrow_hashref; 144 $findobj->finish; 145 146 if ($res) { 147 return $self->get_object($res->{relname}, $res->{name}); 148 } else { 149 return; 150 } 151 } 152 128 153 sub _sync_dyn_group { 129 154 my ($self) = @_;
Note: See TracChangeset
for help on using the changeset viewer.