yuki-kimoto / Mojolicious-Plugin-MySQLViewerLite

MySQL view plugin for Mojolicious
2 stars 2 forks source link

I found a bug #3

Open wfso opened 6 years ago

wfso commented 6 years ago

================== your code ======================= package Mojolicious::Plugin::MySQLViewerLite::Base::Command; sub params { my ($self, $c) = @; my $params = {map {$ => scalar $c->param($_)} $c->param}; return $params; }

==================== require change to ======================= package Mojolicious::Plugin::MySQLViewerLite::Base::Command; sub params { my ($self, $c) = @; my $params = {map {$ => scalar $c->param($_)} @{$c->req->params->names}}; return $params; }

yuki-kimoto commented 6 years ago

Thank you. This module is not used because this module is merged to Mojolicious::Plugin::DBViewer.

https://github.com/yuki-kimoto/Mojolicious-Plugin-DBViewer

but If you hope fixing Mojolicious::Plugin::MySQLViewerLite, I can do.