Defect #20501

Empty divs when there are no custom fields on the issue form

Added by Amol HATWAR almost 3 years ago. Updated almost 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:3.2.0
Resolution:Fixed Affected version:3.1.0

Description

The DOM is getting polluted with unnecessary ``splitcontent`` divs for ``custom_field_values`` even when there are absolutely none defined. This limits theming splitcontent divs as it renders empty boxes...

Patch to get rid of the free extra divs is attached.

fix_new_issue_view_custom_field_values_form.patch Magnifier (981 Bytes) Amol HATWAR, 2015-08-09 14:47

Associated revisions

Revision 14512
Added by Jean-Philippe Lang almost 3 years ago

Don't render empty divs when there are no custom fields on the issue form (#20501).

History

#1 Updated by Jean-Philippe Lang almost 3 years ago

  • Subject changed from DOM pollution in new issues form to Empty divs when there are no custom fields on the issue form
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Priority changed from High to Normal
  • Target version set to 3.2.0
  • Resolution set to Fixed

Fixed in r14512 with a slightly different change, thanks for pointing this out.

Also available in: Atom PDF