On Tue, May 16, 2017 at 9:18 AM, Ryan Ollos <[email protected]> wrote: > > > On Mon, May 15, 2017 at 11:09 PM Roger Oberholtzer > <[email protected]> wrote: >> >> When I do a batch modify of a field (Trac 1.2), I often get this error: >> >> Trac detected an internal error: >> >> ValueError: invalid literal for int() with base 10: 'um:' >> >> File >> "/usr/lib/python2.7/site-packages/Trac-1.2.1-py2.7.egg/trac/web/main.py", >> line 623, in _dispatch_request >> File >> "/usr/lib/python2.7/site-packages/Trac-1.2.1-py2.7.egg/trac/web/main.py", >> line 239, in dispatch >> File >> "/usr/lib/python2.7/site-packages/Trac-1.2.1-py2.7.egg/trac/ticket/batch.py", >> line 73, in process_request >> File >> "/usr/lib/python2.7/site-packages/Trac-1.2.1-py2.7.egg/trac/ticket/batch.py", >> line 193, in _save_ticket_changes >> >> However, if I change each of the fields by hand, there is no problem. The >> field is a custom field defined as: >> >> estimatedhours = text >> estimatedhours.label = Estimated Number of Hours >> estimatedhours.order = 15 >> estimatedhours.value = 0 >> >> >> Is this perhaps an issue with the Batch Modify code, and not the db? > > > The list of ticket ids is sent as the request argument "selected_tickets". > Somehow "um:" is contained in that list. The exception is raised when > passing "um:" to int(). > https://trac.edgewall.org/browser/tags/trac-1.2/trac/ticket/batch.py?marks=193#L186 > > A plugin seems like the most likely cause of this.
I see what it is. And I have a funny feeling I have been bitten by this one before. I have a summary field that adds a row to the ticket query. It is selectable (which I think it should not be...). The text in the ticket field is "Sum:", which is there the "um:" comes from. If I deselect this row, then the batch modify works great, I would imagine that the plugin that lists the sum should not add a selectable row ti the ticket query... -- Roger Oberholtzer -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
