Bug 756108 - Use of uninitialized value $root in exists at .../Role/NestedHashUtils.pm line 121.
Summary: Use of uninitialized value $root in exists at .../Role/NestedHashUtils.pm lin...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-HTML-FormFu
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Iain Arnell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-22 17:24 UTC by Daniel Piddock
Modified: 2011-11-23 12:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-23 12:54:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Stop warning in HTML::FormFu::Role::NestedHashUtils (537 bytes, patch)
2011-11-22 17:24 UTC, Daniel Piddock
no flags Details | Diff

Description Daniel Piddock 2011-11-22 17:24:56 UTC
Created attachment 535130 [details]
Stop warning in HTML::FormFu::Role::NestedHashUtils

Description of problem:
Submitting a form containing a Label element generates the follow warning:
"Use of uninitialized value $root in exists at /usr/share/perl5/vendor_perl/HTML/FormFu/Role/NestedHashUtils.pm line 121."

Version-Release number of selected component (if applicable):
0.09003

How reproducible:
Always

Steps to Reproduce:
1. Create a form containing a Label and Submit elements
Sample YAML:
elements:
  - type: Label
    label: foo
  - type: Submit
    name: submit
2. Hit Submit

Actual results:
"Use of uninitialized value $root in exists at /usr/share/perl5/vendor_perl/HTML/FormFu/Role/NestedHashUtils.pm line 121." printed to console

Expected results:
No warnings to the console

Additional info:
Developing with Catalyst.
Attaching a simple patch to stop the noise.

Comment 1 Iain Arnell 2011-11-23 12:54:52 UTC
You can also stop the noise by simply giving your label a name:

elements:
  - type: Label
    name: foo
    label: foo
  - type: Submit
    name: submit


And since you're doing perl development, it's usually better to report problems with perl modules to rt.cpan.org (unless it's already fixed upstream and you would like us to update the version packaged in fedora, or upstream is non-responsive).


Note You need to log in before you can comment on or make changes to this bug.