Skip to content
This repository
Browse code

Add tree-master attribute to [menu] tag.

  • Loading branch information...
commit ab6283630b0e028ecc80e326e3132a73d40b5124 1 parent f22c5ab
Stefan Hornburg (Racke) racke authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 lib/Vend/Menu.pm
8 lib/Vend/Menu.pm
@@ -418,7 +418,7 @@ EOF
418 418 my %defaults = (
419 419 start => $opt->{tree_selector} || 'Products',
420 420 table => $::Variable->{MV_TREE_TABLE} || 'tree',
421   - master => 'parent_fld',
  421 + master => $opt->{tree_master} || 'parent_fld',
422 422 subordinate => 'code',
423 423 autodetect => '1',
424 424 sort => 'code',
@@ -551,7 +551,7 @@ EOF
551 551 start => $opt->{tree_selector} || $opt->{name},
552 552 file => $opt->{file},
553 553 table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
554   - master => 'parent_fld',
  554 + master => $opt->{tree_master} || 'parent_fld',
555 555 subordinate => 'code',
556 556 autodetect => '1',
557 557 no_open => 1,
@@ -946,7 +946,7 @@ EOF
946 946 my %o = (
947 947 start => $opt->{tree_selector} || 'Products',
948 948 table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
949   - master => 'parent_fld',
  949 + master => $opt->{tree_master} || 'parent_fld',
950 950 file => $opt->{file},
951 951 subordinate => 'code',
952 952 autodetect => '1',
@@ -1466,7 +1466,7 @@ EOF
1466 1466 my %o = (
1467 1467 start => $opt->{tree_selector} || 'Products',
1468 1468 table => $opt->{table} || $::Variable->{MV_TREE_TABLE} || 'tree',
1469   - master => 'parent_fld',
  1469 + master => $opt->{tree_master} || 'parent_fld',
1470 1470 file => $opt->{file},
1471 1471 subordinate => 'code',
1472 1472 autodetect => '1',

0 comments on commit ab62836

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