Skip to content

Commit

Permalink
Fixed a bug in the ...Entries tag where entries wouldn't be identif…
Browse files Browse the repository at this point in the history
…ied depending upon which configuration options were used.
  • Loading branch information
danwolfgang committed Sep 15, 2014
1 parent c02e6e6 commit 5d47d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/ConfigAssistant.pack/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ key: ConfigAssistant
author_link: https://github.com/openmelody/mt-plugin-configassistant
author_name: "Byrne Reese, Open Melody Software Group"
description: This plugin provides a simple YAML based framework for creating plugin and theme configuration options.
version: 2.5.12
version: 2.5.13
static_version: 20
schema_version: 4

Expand Down
6 changes: 3 additions & 3 deletions addons/ConfigAssistant.pack/lib/ConfigAssistant/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ sub _hdlr_field_entry_loop {
my $value = _get_field_value($ctx);

# The value contains both active and inactive entries. We want the
# active ones, because the inactive ones aren't supposed to get
# active ones, because the inactive ones aren't supposed to get
# published. The format is, for example: `active:1,2,5;inactive:3,4,6`
( my $active_ids = $value ) =~ s{active:(.*);inactive.*}{$1};
my @ids = grep { /^\d+$/ } split( ',', $active_ids );
( my $active_ids = $value ) =~ s{active:([\d,]*)(;)?(inactive.*)?}{$1};
my @ids = grep { /\d+/ } split( ',', $active_ids );

# There are no entries selected.
unless ( @ids ) {
Expand Down

0 comments on commit 5d47d42

Please sign in to comment.