Revision 801
- Date:
- 2020/08/12 17:01:40
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/plugins/webshop/lib/webshop/Order.pm
175 175 ]; 176 176 } 177 177 178 sub contenido_status_style 179 { 180 my $self = shift; 181 return unless ref $self && $self->id; 182 183 my $ptype; 184 if ( exists $request->{profile_type}{$self->id} ) { 185 $ptype = $request->{profile_type}{$self->id}; 186 } else { 187 $sth = $keeper->SQL->prepare("select p.type from orders as o join profiles as p on o.uid = p.id where o.id = ?"); 188 $sth->execute( $self->id ); 189 ($ptype) = $sth->fetchrow; 190 $sth->finish; 191 $request->{profile_type}{$self->id} = $ptype; 192 } 193 if ( $ptype == 2 ) { 194 return 'color:green;'; 195 } 196 } 197 178 198 sub post_store 179 199 { 180 200 my $self = shift;