Plugin Forums

Discuss and get help with staggernation.com's plugins for Movable Type.

You are not logged in.

#1 2005-12-11 19:53:49

almuhajabah
New member
Registered: 2005-12-10
Posts: 4
Website

Linked Entry bug?

This is an initial report of a possible bug I experienced while using the Linked Entry feature of the RightFields plugin. As I have a chance to do more testing, I'll update this with any further information.

I installed RightFields and have configured it so far for two of my blogs. One of the blogs I am only using RightFields currently to change the labels on some of the standard fields and I am not experiencing any problems with that.

The other blog I configured to use extra fields. I am using the SQL database option rather than PluginData, in order to make use of the Linked Entry feature. I added a single extra field to this blog as a Linked Entry field, and it pulls entries from the same blog.

The Linked Entry feature itself works without any problems. However, I noticed that when I either go to Create a New Entry page or to edit an existing entry, the Authored On date field is blank, and the checkboxes for Accept Comments and Accept TrackBacks have been cleared, even though both should be checked by default.

This happens both in Maxthon 1.5 (which is an IE clone browser) and in Firefox 1.5. When I save an existing entry and the Authored On date field is blank, the date information appears to still be stored in the database, since the date shows for the entry on the List Entries page and the date and time stamp on the published entry is the same as it was before. That is, it does not blank out the date in the database or on the published page on saving. However, it does turn off comments and trackbacks on saving the entry.

If I manually re-enter the date in the Authored On date field and check the Accept Comments and Accept TrackBacks boxes, then save, when the page comes back after saving, the boxes are all empty again. Comments and trackbacks remain turned off for the entry.

When creating a new entry, I have the UpdateAuthoredOn plugin installed and can use this to set the current date and time for the new entry. This data is stored in the database, and appears on the published entry and on the List Entries page, but the field is blank on the posting page after saving.

I am not experiencing this on any of my other blogs and it only appeared after adding the Linked Entry field.

In addition to the Linked Entry field, I am also using the UpdateAuthoredOn plugin, as mentioned above, and the LinkEntryToFile plugin plus the Smilies plugin from eatsleepdrinkmovabletype.com to add various elements to the posting page. These are enabled for all blogs, and the problems are not experienced there.

I have not yet tested the following:

* does this happen if I add a Linked Entry field to another blog?
* does this happen if I add other types of extra fields to this or other blogs?
* does the problem persist if I disable UpdateAuthoredOn, LinkEntryToFile, and/or Smilies?

I have also not yet tested what happens if I save a new entry without having put a date in the Authored On date field or to enter a different date in the field for an existing entry to see if the changes are accepted.

Time permitting, I hope to carry out these tests over the coming week and will add any additional information here.

However, I did want to start this topic with what I've found so far.

Offline

 

#2 2005-12-19 12:15:40

Kevin Shay
Administrator
Registered: 2005-11-22
Posts: 265
Website

Re: Linked Entry bug?

Another beta tester, Cameron Barrett, just found a missing quote in the code, which I suspect is what's causing your problem. Try Cameron's fix (note the additional quote toward the end of the second one, which I've bolded):

Line #481 in RightFields.pl:

$$template =~ s/tabindex="$i"/tabindex="<TMPL_VAR NAME=TABINDEX_$i>/g;

Should be:

$$template =~ s/tabindex="$i"/tabindex="<TMPL_VAR NAME=TABINDEX_$i>"/g;

Offline

 

#3 2005-12-19 18:42:14

almuhajabah
New member
Registered: 2005-12-10
Posts: 4
Website

Re: Linked Entry bug?

Yep, that fixed it. Thanks!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson