Skip to content
Browse files

Add tree-master attribute to [menu] tag.

  • Loading branch information...
1 parent f22c5ab commit ab6283630b0e028ecc80e326e3132a73d40b5124 @racke racke committed May 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Vend/Menu.pm
View
8 lib/Vend/Menu.pm
@@ -418,7 +418,7 @@ EOF
my %defaults = (
start => $opt->{tree_selector} || 'Products',
table => $::Variable->{MV_TREE_TABLE} || 'tree',
- master => 'parent_fld',
+ master => $opt->{tree_master} || 'parent_fld',
subordinate => 'code',
autodetect => '1',
sort => 'code',
@@ -551,7 +551,7 @@ EOF
start => $opt->{tree_selector} || $opt->{name},
file => $opt->{file},
table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
- master => 'parent_fld',
+ master => $opt->{tree_master} || 'parent_fld',
subordinate => 'code',
autodetect => '1',
no_open => 1,
@@ -946,7 +946,7 @@ EOF
my %o = (
start => $opt->{tree_selector} || 'Products',
table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
- master => 'parent_fld',
+ master => $opt->{tree_master} || 'parent_fld',
file => $opt->{file},
subordinate => 'code',
autodetect => '1',
@@ -1466,7 +1466,7 @@ EOF
my %o = (
start => $opt->{tree_selector} || 'Products',
table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
- master => 'parent_fld',
+ master => $opt->{tree_master} || 'parent_fld',
file => $opt->{file},
subordinate => 'code',
autodetect => '1',

0 comments on commit ab62836

Please sign in to comment.
Something went wrong with that request. Please try again.