Closed (fixed)
Project:
OG Titles
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Mar 2009 at 13:51 UTC
Updated:
16 Apr 2009 at 02:10 UTC
When I go to node/%node/titles/edit/%tlid, I sometimes get the wrong default value in the text box. I believe this is due to the following code, in line 303 of the 25 Mar 2009 6.x-dev snapshot:
$title = _og_titles_get_title(arg(4));
The problem is that the tlid (i.e. arg(4)) is not a unique primary key for the og_titles table, but rather a composite key with the nid.
I've rolled a patch to solve this problem, which is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| og_titles.module.edit_title.patch | 526 bytes | shaisachs |
Comments
Comment #1
mradcliffeThank you for your patch. I needed to modify some things and rolled the basic idea into a commit.
Tested with changes.