Skip to content

Commit

Permalink
(Bug 4017) Don't use the raw property for tags
Browse files Browse the repository at this point in the history
* don't use the raw taglist property when converting backend-to-form
* form-to-backend still uses the raw taglist, because the protocol takes
  care of that
  • Loading branch information
afuna committed Sep 25, 2012
1 parent a84e114 commit ae0adda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cgi-bin/DW/Controller/Entry.pm
Expand Up @@ -34,8 +34,6 @@ my %form_to_props = (
current_mood_other => "current_mood",
current_music => "current_music",
current_location => "current_location",

taglist => "taglist",
);


Expand Down Expand Up @@ -692,6 +690,7 @@ sub _form_to_backend {
$props->{$propname} = $post->{$formname}
if defined $post->{$formname};
}
$props->{taglist} = $post->{taglist} if defined $post->{taglist};
$props->{picture_keyword} = $post->{icon} if defined $post->{icon};
$props->{opt_backdated} = $post->{entrytime_outoforder} ? 1 : 0;
# FIXME
Expand Down Expand Up @@ -803,6 +802,8 @@ sub _backend_to_form {

# some properties aren't in the hash above, so go through them manually
my %otherprops = (
taglist => join( ', ', $entry->tags ),

entrytime_outoforder => $entry->prop( "opt_backdated" ),

age_restriction => {
Expand Down

0 comments on commit ae0adda

Please sign in to comment.