1 |
bytegw |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm |
2 |
|
|
--- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm 2007-01-27 01:56:31.000000000 +0000 |
3 |
|
|
+++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/ConfigDB/unsaved.pm 2007-11-11 14:16:21.000000000 +0000 |
4 |
|
|
@@ -31,19 +31,22 @@ |
5 |
|
|
sub set_prop { |
6 |
|
|
my ($self, $key, $prop, $value) = @_; |
7 |
|
|
|
8 |
|
|
- my $current_value = $self->SUPER::get_prop($key, $prop); |
9 |
|
|
+ my $rec = $self->get($key); |
10 |
|
|
+ return unless ($rec); |
11 |
|
|
+ my $current_value = $rec->prop($prop); |
12 |
|
|
return $current_value if (defined $current_value and $current_value eq $value); |
13 |
|
|
|
14 |
|
|
$self->SUPER::set_value('UnsavedChanges', 'yes'); |
15 |
|
|
- return $self->SUPER::set_prop($key, $prop, $value); |
16 |
|
|
+ return $rec->set_prop($prop, $value); |
17 |
|
|
} |
18 |
|
|
sub delete_prop { |
19 |
|
|
my ($self, $key, $prop) = @_; |
20 |
|
|
- my $current_value = $self->get_prop($key, $prop); |
21 |
|
|
+ my $rec = $self->get($key); |
22 |
|
|
+ my $current_value = $rec->prop($prop); |
23 |
|
|
return unless (defined $current_value); |
24 |
|
|
|
25 |
|
|
$self->SUPER::set_value('UnsavedChanges', 'yes'); |
26 |
|
|
- return $self->SUPER::delete_prop($key, $prop); |
27 |
|
|
+ return $rec->delete_prop($prop); |
28 |
|
|
} |
29 |
|
|
# Deleting a record is the same as changing one |
30 |
|
|
sub delete { |