--- /dev/null
+Issue: a5b1eb37
+CreatedBy: Andrew Chilton <andychilton@gmail.com>
+Inserted: 2008-07-02T12:51:27
+Updated: 2008-07-02T12:52:08
+
+This was happening because there was only one line for the StatusClosedList.
+This would happen with some of the other List items too.
+
+Should be fixed now.
Summary: Can't use string ("Finished") as an ARRAY ref while "strict refs" in use at /usr/share/perl5/CIL.pm line 227.
-Status: New
+Status: Finished
CreatedBy: Nigel McNie <nigel@mcnie.name>
AssignedTo: Nigel McNie <nigel@mcnie.name>
+Comment: f09a77f4
Inserted: 2008-07-02T12:27:39
-Updated: 2008-07-02T12:28:51
+Updated: 2008-07-02T12:52:26
I get this error when running 'cil list --is-open' on my repo.
# for some things, make a hash out of them
foreach my $hash_name ( @config_hashes ) {
my $h = {};
- foreach my $thing ( @{$cfg->{"${hash_name}List"}} ) {
+ my @list = ref $cfg->{"${hash_name}List"} eq 'ARRAY' ? @{$cfg->{"${hash_name}List"}} : $cfg->{"${hash_name}List"};
+ foreach my $thing ( @list ) {
$h->{$thing} = 1;
}
$cfg->{$hash_name} = $h;