Modify

Opened 4 years ago

Closed 4 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 4 years ago by anonymous

  • Summary changed from BatchMod under Trac 0.11.7 missing "quote" function to BatchMod under Trac 0.11.7 missing "quote" variable

comment:2 Changed 4 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 4 years ago by CuriousCurmudgeon

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from CuriousCurmudgeon. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.