Skip to content

Commit

Permalink
[#344 state:resolved] Fixed bug related to non-display of user custom…
Browse files Browse the repository at this point in the history
… field data on the CMS Edit Profile page under certain circumstances. (FogBugz case #103714)

See https://openmelody.lighthouseapp.com/projects/26604/tickets/344 for details
  • Loading branch information
Open Melody Software Group committed Jul 14, 2010
1 parent 8080b50 commit e9215bc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/MT/Object.pm
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,15 @@ sub column_func {
$obj->{__meta}->set($col, @_);
}
else {
# Repopulate meta fields if they are missing; this fixes an issue with memcached caching an incomplete object
if (! exists $obj->{__meta}->{__objects}->{$col}) {
my $proxy = $obj->{__meta};
$proxy->set_primary_keys($obj) if $obj->has_primary_key;
$proxy->load_objects($col);
}
# NOTE: Commented out as patch for FogBugz case 103714
# http://bugs.movabletype.org/?103714
# This bug existed in Melody 0.9.15 and MT 4.34
# # Repopulate meta fields if they are missing; this fixes an issue with memcached caching an incomplete object
# if (! exists $obj->{__meta}->{__objects}->{$col}) {
# my $proxy = $obj->{__meta};
# $proxy->set_primary_keys($obj) if $obj->has_primary_key;
# $proxy->load_objects($col);
# }
$obj->{__meta}->get($col);
}
};
Expand Down

0 comments on commit e9215bc

Please sign in to comment.