projects
/
app-web-oof.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c51bcbe
)
Hide out-of-stock products from order form
author
Marius Gavrilescu
<marius@ieval.ro>
Sat, 28 May 2016 16:55:58 +0000
(17:55 +0100)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sat, 28 May 2016 16:56:11 +0000
(17:56 +0100)
lib/App/Web/Oof.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/App/Web/Oof.pm
b/lib/App/Web/Oof.pm
index 637f3935180bd294206ca02aec1c83a676c70ed4..d8590764c338217673294d32b046761ef71c6210 100644
(file)
--- a/
lib/App/Web/Oof.pm
+++ b/
lib/App/Web/Oof.pm
@@
-108,7
+108,7
@@
sub form_app {
my $req = Plack::Request->new($env);
local %highlight = map { $_ => 1 } $req->param('highlight');
- my $data = $db{$$}->select(products => '*', {}, 'product')->hashes;
+ my $data = $db{$$}->select(products => '*', {
stock => {'>', 0}
}, 'product')->hashes;
my $tree = $form->clone;
$tree->find('tbody')->find('tr')->iter3($data, \&form_table_row);
This page took
0.01121 seconds
and
4
git commands to generate.