diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-06-25 18:53:45 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-06-25 18:53:45 +0200 |
commit | e8dc873cd36545df3c308c8abf84cd9505b2aa3f (patch) | |
tree | d861e452c9110dc0bef5ed50e49b5f68f37c802b | |
parent | cdfeb58a3eba4f25d0ec1890d07345ef8e8cfd3a (diff) | |
download | manatools-e8dc873cd36545df3c308c8abf84cd9505b2aa3f.tar manatools-e8dc873cd36545df3c308c8abf84cd9505b2aa3f.tar.gz manatools-e8dc873cd36545df3c308c8abf84cd9505b2aa3f.tar.bz2 manatools-e8dc873cd36545df3c308c8abf84cd9505b2aa3f.tar.xz manatools-e8dc873cd36545df3c308c8abf84cd9505b2aa3f.zip |
wrong default_item_separator management into ask_fromTreeList
-rw-r--r-- | lib/AdminPanel/Shared/GUI.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/AdminPanel/Shared/GUI.pm b/lib/AdminPanel/Shared/GUI.pm index dfef5f08..493c8a7d 100644 --- a/lib/AdminPanel/Shared/GUI.pm +++ b/lib/AdminPanel/Shared/GUI.pm @@ -696,7 +696,11 @@ sub ask_fromTreeList { my $treeInfo; $treeInfo->{collection} = new yui::YItemCollection; $treeInfo->{default_item} = $info->{default_item} if $info->{default_item}; - $treeInfo->{default_item_separator} = $info->{item_separator} if $info->{item_separator}; + if ($treeInfo->{default_item} && $info->{item_separator}) { + if (index($treeInfo->{default_item}, $info->{item_separator}) != -1) { + $treeInfo->{default_item_separator} = $info->{item_separator}; + } + } my $list2Convert; $list2Convert->{paths} = $info->{list}; $list2Convert->{separator} = $info->{item_separator} if $info->{item_separator}; |