Bug 756108

Summary: Use of uninitialized value $root in exists at .../Role/NestedHashUtils.pm line 121.
Product: [Fedora] Fedora Reporter: Daniel Piddock <dgp-bz>
Component: perl-HTML-FormFuAssignee: Iain Arnell <iarnell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: iarnell, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 12:54:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Stop warning in HTML::FormFu::Role::NestedHashUtils none

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).