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

Podpora cs

parent 3f1cf3e2
No related branches found
No related tags found
No related merge requests found
Pipeline #15817 passed
......@@ -59,7 +59,7 @@ $c->trace($q);
push @options, {
id => $record->{id},
name => $record->{name}{en},
name => ($record->{name}{cs} // $record->{name}{en}),
price => $record->{default_price} + 0,
free_price => $record->{free_price},
category_id => $record->{category},
......@@ -67,7 +67,7 @@ $c->trace($q);
variations => [
map {{
id => $_->{id},
value => $_->{value}{en},
value => ($_->{value}{cs} // $_->{value}{en}),
price => $_->{price} + 0,
quotes => $q->{$record->{id}}{$_->{id} },
}} @{ $record->{variations} }
......
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