|
Lines 2783-2789
FIXME: It should return I<$self>. See bug 35270.
Link Here
|
| 2783 |
sub location_update_trigger { |
2783 |
sub location_update_trigger { |
| 2784 |
my ( $self, $action ) = @_; |
2784 |
my ( $self, $action ) = @_; |
| 2785 |
|
2785 |
|
| 2786 |
if (my $new_location = $self->_check_location_update_rules($action)) { |
2786 |
my $new_location = $self->_check_location_update_rules($action); |
|
|
2787 |
if (defined $new_location) { |
| 2787 |
my $messages = { |
2788 |
my $messages = { |
| 2788 |
'ItemLocationUpdated' => { |
2789 |
'ItemLocationUpdated' => { |
| 2789 |
from => $self->location, |
2790 |
from => $self->location, |
|
Lines 2815-2822
sub _check_location_update_rules {
Link Here
|
| 2815 |
if (defined($update_loc_rules->{'_ALL_'})) { |
2816 |
if (defined($update_loc_rules->{'_ALL_'})) { |
| 2816 |
return $self->_check_location_update_rule($update_loc_rules->{'_ALL_'}); |
2817 |
return $self->_check_location_update_rule($update_loc_rules->{'_ALL_'}); |
| 2817 |
} |
2818 |
} |
| 2818 |
elsif (defined($update_loc_rules->{$self->location//''})) { |
2819 |
elsif (defined($update_loc_rules->{$self->location||'_BLANK_'})) { |
| 2819 |
return $self->_check_location_update_rule($update_loc_rules->{$self->location}); |
2820 |
return $self->_check_location_update_rule($update_loc_rules->{$self->location||'_BLANK_'}); |
| 2820 |
} |
2821 |
} |
| 2821 |
elsif (defined($update_loc_rules->{'_DEFAULT_'})) { |
2822 |
elsif (defined($update_loc_rules->{'_DEFAULT_'})) { |
| 2822 |
return $self->_check_location_update_rule($update_loc_rules->{'_DEFAULT_'}); |
2823 |
return $self->_check_location_update_rule($update_loc_rules->{'_DEFAULT_'}); |