diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-06-25 17:55:01 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-06-25 17:55:01 +0200 |
commit | 339ef6668de37f657d0ece0520aa17b574ed0487 (patch) | |
tree | bda3ed92cac4ffcd8df05619b90e661c95683f5e | |
parent | b78632292cdea8259bc6493e6cfa5a5326c22d60 (diff) | |
download | manatools-339ef6668de37f657d0ece0520aa17b574ed0487.tar manatools-339ef6668de37f657d0ece0520aa17b574ed0487.tar.gz manatools-339ef6668de37f657d0ece0520aa17b574ed0487.tar.bz2 manatools-339ef6668de37f657d0ece0520aa17b574ed0487.tar.xz manatools-339ef6668de37f657d0ece0520aa17b574ed0487.zip |
item_list onstead of itemList to be consistent
-rw-r--r-- | lib/AdminPanel/Shared/GUI.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/AdminPanel/Shared/GUI.pm b/lib/AdminPanel/Shared/GUI.pm index 6d552ea7..dfef5f08 100644 --- a/lib/AdminPanel/Shared/GUI.pm +++ b/lib/AdminPanel/Shared/GUI.pm @@ -334,7 +334,7 @@ sub ask_YesOrNo { $listInfo: HASH reference containing default_item => Selected item (if any) - itemList => ARRAY reference containing the item list + item_list => ARRAY reference containing the item list =head3 OUTPUT @@ -352,13 +352,13 @@ sub ask_YesOrNo { sub arrayListToYItemCollection { my ($self, $listInfo) = @_; - die "Item list is mandatory" if !($listInfo->{itemList}); + die "Item list is mandatory" if !($listInfo->{item_list}); # TODO check type - die "Not empty item list is mandatory" if (scalar @{$listInfo->{itemList}} < 1); + die "Not empty item list is mandatory" if (scalar @{$listInfo->{item_list}} < 1); my $itemColl = new yui::YItemCollection; - foreach (@{$listInfo->{itemList}}) { + foreach (@{$listInfo->{item_list}}) { my $item = new yui::YItem ($_, 0); $itemColl->push($item); $item->DISOWN(); @@ -423,7 +423,7 @@ sub ask_fromList { my $listInfo; $listInfo->{default_item} = $info->{default_item} if $info->{default_item}; - $listInfo->{itemList} = $info->{list}; + $listInfo->{item_list} = $info->{list}; my $itemColl = $self->arrayListToYItemCollection($listInfo); $combo->addItems($itemColl); |