Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Rubric CPAN distribution.

Report information
The Basics
Id: 25729
Status: resolved
Priority: 0/
Queue: Rubric

People
Owner: Nobody in particular
Requestors: rockear [...] hive-mind.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: revising an entry - single tag doesn't display
Date: Fri, 23 Mar 2007 20:12:14 -0700
To: bug-Rubric [...] rt.cpan.org
From: "Casey Carter" <rockear [...] hive-mind.net>
In Rubric version 0.142, if an entry has only one tag, editing the entry prevents the single tag from showing up in the "entrytags" field. The following patch fixes the problem. --- Rubric-0.142/templates/post.html 2006-08-14 10:03:20.000000000 -0700 +++ /usr/local/rubric_templates/post.html 2007-03-23 20:03:34.000000000 -0700 @@ -50,7 +50,8 @@ <tr> <th>[% accessor %]</th> [% SET field_value = form.$param.join(" ") - OR existing_entry.$accessor.join(" "); %] + OR existing_entry.$accessor.join(" ") + OR existing_entry.$accessor; %] <td>[% widget.input( name => param,
Fixed in Subversion. The fixed I used was to put a call to the "list" vmethod before join, to ensure that the object, if a scalar, is treated like a list. -- rjbs