Skip Menu |

This queue is for tickets about the HTML-FormFu-Model-DBIC CPAN distribution.

Report information
The Basics
Id: 65727
Status: resolved
Priority: 0/
Queue: HTML-FormFu-Model-DBIC

People
Owner: Nobody in particular
Requestors: sven [...] sveneppler.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: default_natural on Date-Elements overrides default_values()
Date: Tue, 15 Feb 2011 02:34:05 +0100
To: bug-HTML-FormFu-Model-DBIC [...] rt.cpan.org
From: Sven Eppler <sven [...] sveneppler.de>
Hi, i recently found out that when you have a form with a Date element which has "default_natural: today" as default value and use this form with H:F:M:DBIC, the call to "default_values($row)" doesn't set the default value of the Date element correctly. The default_natural value is still displayed instead of the value which the model row supplies. The Module Versions: DBIx::Class = 0.08123 HTML::FormFu = 0.08002 HTML::FormFu::Model::DBIC = 0.08002 This is perl, v5.8.8 built for i486-linux-gnu-thread-multi uname -a = Linux pinguin 2.6.24-28-server #1 SMP Wed Nov 24 10:04:43 UTC 2010 i686 GNU/Linux Greetings, -- Sven Eppler <sven@sveneppler.de>
Download smime.p7s
application/x-pkcs7-signature 3.3k

Message body not shown because it is not plain text.

I've changed it to use default() in preference to default_natural(), which should fix this. It's committed to github, and will be in the next cpan version. - thanks!