Modify

Opened 9 years ago

Last modified 5 years ago

#12425 new defect

Use current page as default instead of WikiStart for attachments

Reported by: HMuentinga Owned by:
Priority: normal Component: TracBibPlugin
Severity: normal Keywords: patch
Cc: Trac Release:

Description

[[BibAdd(attachment:bib.bib)]] should look for attachments on current page as default, not WikiStart.

Patch:

 1.0/tracbib/source.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/1.0/tracbib/source.py b/1.0/tracbib/source.py
index 77005b5..df9535f 100644
--- a/1.0/tracbib/source.py
+++ b/1.0/tracbib/source.py
@@ -130,7 +130,7 @@ class BibtexSourceAttachment(Component):
             raise TracError('Usage: BibAdd(attachment:[path/to/]file)')
         elif len(path_info) == 1:
             file = path_info[0]
-            page = req.args.get('page')
+            page = req.args.get('id')
             if page is None:  # TODO: clean solution
                 page = 'WikiStart'
             bib = Attachment(self.env, realm, page, file)

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Ryan J Ollos

Owner: Roman Mohr deleted

comment:2 Changed 5 years ago by figaro

Keywords: patch added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.