Edgewall Software

Opened 11 years ago

Last modified 10 years ago

#11361 closed enhancement

Hide batch modify form when there are no query results — at Initial Version

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: ticket system Version: 1.0-stable
Severity: normal Keywords: batch-modify
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The batch modify form is shown when there are no query results, however the Action fieldset is empty and the form can't serve any function.

The proposed change will hide the #batchmod_form when there are no query results.

  • trac/ticket/templates/query.html

    diff --git a/trac/ticket/templates/query.html b/trac/ticket/templates/query.html
    index 4f8e682..6de55dd 100644
    a b  
    223223      </form>
    224224
    225225      <xi:include href="query_results.html" />
    226       <xi:include py:if="batch_modify" href="batch_modify.html" />
     226      <xi:include py:if="tickets and batch_modify" href="batch_modify.html" />
    227227
    228228      <div id="trac-report-buttons" class="buttons"
    229229           py:with="edit = report_resource and 'REPORT_MODIFY' in perm(report_resource);

Change History (1)

by Ryan J Ollos, 11 years ago

Attachment: NoTickets.png added
Note: See TracTickets for help on using tickets.