[Catalyst-commits] r12291 - in Catalyst-Controller-DBIC-API/1.003: .
branches/moosify-validation-configurability/lib/Catalyst/Controller/DBIC/API
nperez at dev.catalyst.perl.org
nperez at dev.catalyst.perl.org
Thu Dec 10 10:04:22 GMT 2009
Author: nperez
Date: 2009-12-10 10:04:21 +0000 (Thu, 10 Dec 2009)
New Revision: 12291
Modified:
Catalyst-Controller-DBIC-API/1.003/
Catalyst-Controller-DBIC-API/1.003/branches/moosify-validation-configurability/lib/Catalyst/Controller/DBIC/API/Base.pm
Log:
r4258 at nicklaptop: nicholas | 2009-12-10 03:54:44 -0600
Support JSON boolean in validate
Property changes on: Catalyst-Controller-DBIC-API/1.003
___________________________________________________________________
Name: svk:merge
- 4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Controller-DBIC-API/1.001:9528
4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Controller-DBIC-API/1.002:9762
992f488a-d630-404b-95f9-f7d0fdf28443:/local/ccda:4256
+ 4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Controller-DBIC-API/1.001:9528
4ad37cd2-5fec-0310-835f-b3785c72a374:/Catalyst-Controller-DBIC-API/1.002:9762
992f488a-d630-404b-95f9-f7d0fdf28443:/local/ccda:4258
Modified: Catalyst-Controller-DBIC-API/1.003/branches/moosify-validation-configurability/lib/Catalyst/Controller/DBIC/API/Base.pm
===================================================================
--- Catalyst-Controller-DBIC-API/1.003/branches/moosify-validation-configurability/lib/Catalyst/Controller/DBIC/API/Base.pm 2009-12-10 09:46:10 UTC (rev 12290)
+++ Catalyst-Controller-DBIC-API/1.003/branches/moosify-validation-configurability/lib/Catalyst/Controller/DBIC/API/Base.pm 2009-12-10 10:04:21 UTC (rev 12291)
@@ -330,7 +330,7 @@
# TODO: do automatic col type checking here
# check for multiple values
- if (ref($value)) {
+ if (ref($value) && ($value != JSON::Any::true || $value != JSON::Any::false)) {
$self->push_error($c, { message => "Multiple values for '${key}'" });
}
More information about the Catalyst-commits
mailing list