Skip to content
Snippets Groups Projects
Verified Commit ba70a627 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Bugfix, test

parent e8984b4c
No related branches found
No related tags found
No related merge requests found
Pipeline #11115 passed
...@@ -2,7 +2,7 @@ image: docker:20.10.9 ...@@ -2,7 +2,7 @@ image: docker:20.10.9
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
IMAGE_VER: 0.11.1 IMAGE_VER: 0.11.2
services: services:
- docker:20.10.9-dind - docker:20.10.9-dind
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
pretix_event => 'cf2022', pretix_event => 'cf2022',
pretix_qid_sso => 29, # identifikator otazky SSO UID pretix_qid_sso => 29, # identifikator otazky SSO UID
pretix_qid_region => 8, # identifikator otazky Kraj pretix_qid_region => 8, # identifikator otazky Kraj
# pretix_product_member => 1, # produkt pro cleny pretix_qid_photo => 28, # identifikator otazky Foto
# pretix_product_regp => 2, # produkt pro regp mail_domain => 'pirati.cz',
mail_domain => 'pirati.cz',
products_map => {split /\D+/, $ENV{CFG_PRODUCTS_MAP}},
} }
...@@ -121,7 +121,7 @@ sub create ($c ) { ...@@ -121,7 +121,7 @@ sub create ($c ) {
if ( $photo_id ) { if ( $photo_id ) {
push @answers, ( push @answers, (
{ {
question => 28, question => $c->config->{pretix_qid_photo} ,
answer => $photo_id, answer => $photo_id,
}, },
); );
......
...@@ -71,7 +71,9 @@ sub register ($class, $self, $conf) { ...@@ -71,7 +71,9 @@ sub register ($class, $self, $conf) {
}); });
$self->helper(mapped_product_id => sub ($c, $id) { $self->helper(mapped_product_id => sub ($c, $id) {
return $c->cfg->{products_map}{$id} // $id; my %map = (split /\D+/, $c->cfg->{pretix_products_map});
$c->trace(\%map);
return (exists $map{$id}) ? $map{$id} : $id;
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment