Bug 28932: Fix duplicate next_action & prev_action
This patch fixes the duplicate buttons issue. To test: 1. Apply the regression tests patch 2. Run: $ kshell k$ prove t/db_dependent/Illrequests.t => FAIL: Tests fail 3. Apply this patch 4. Repeat 2 => SUCCESS: Tests pass Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ce4d70988d
commit
97a2b7538c
|
|
@ -569,7 +569,8 @@ sub _status_graph_union {
|
|||
if ( grep { $prev_action eq $_ } @core_status_ids ) {
|
||||
my @next_actions =
|
||||
@{$status_graph->{$prev_action}->{next_actions}};
|
||||
push @next_actions, $backend_status_key;
|
||||
push @next_actions, $backend_status_key
|
||||
if (!grep(/^$backend_status_key$/, @next_actions));
|
||||
$status_graph->{$prev_action}->{next_actions}
|
||||
= \@next_actions;
|
||||
}
|
||||
|
|
@ -579,7 +580,8 @@ sub _status_graph_union {
|
|||
if ( grep { $next_action eq $_ } @core_status_ids ) {
|
||||
my @prev_actions =
|
||||
@{$status_graph->{$next_action}->{prev_actions}};
|
||||
push @prev_actions, $backend_status_key;
|
||||
push @prev_actions, $backend_status_key
|
||||
if (!grep(/^$backend_status_key$/, @prev_actions));
|
||||
$status_graph->{$next_action}->{prev_actions}
|
||||
= \@prev_actions;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue