Modify

Opened 14 years ago

Closed 14 years ago

#7654 closed defect (fixed)

BatchMod under Trac 0.11.7 missing "quote" variable

Reported by: jpr5@… Owned by: CuriousCurmudgeon
Priority: normal Component: BatchModifyPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

BatchMod seems to work for almost every field you'd want to modify except milestone:

http://idisk.me.com/jordanritter/Public/Pictures/CloudCrowd/Dock-20100907-175035.jpg_790%C3%97598_pixels-20100907-181427.jpg

This is because quote doesn't exist in 0.11.7.

To move past this quickly, we changed it to:

jQuery(document).ready(function($){
    //NOTE: Backported from trac.js in Trac 0.12
    $.htmlEscape = function(value) {
        if (typeof value != "string")
            return value;

        return $('<div/>').text(value).html();
    }

   // ...
});

Without this, you basically can't move bunches of tickets to other milestones. This is really the main reason I use the lib in the first place.

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by anonymous

Summary: BatchMod under Trac 0.11.7 missing "quote" functionBatchMod under Trac 0.11.7 missing "quote" variable

comment:2 Changed 14 years ago by CuriousCurmudgeon

(In [8816]) refs #7654

  • Ported the quote hash from Trac 0.12 back to the 0.11 version of the plugin.

comment:3 Changed 14 years ago by CuriousCurmudgeon

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain CuriousCurmudgeon.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.