Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5420

Notice: Undefined offset ... in mod/dataform/field/textarea/classes/renderer.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.2
    • 2.8.1
    • Set: Dataform
    • None

      In a recent improvement a generalized form element size definition was applied to the textarea field. In the specific definition cols and rows units have been added to the default size units. The size and unit are stored as space delimited pair of values when the values are different from default. Parsing the stored data uses array + operator instead of array_merge when listing the two values. But the + operator overrides numeric keys to the effect that while the list expects two items it only finds one, hence, the undefined offset notice.

      The fix is fairly simple and amounts to replacing the + operator with array_merge.

      It may be worthwhile noting here that the sizing has no effect on the editor mode of the textarea field and size adjustment in that mode should be done in the template by html and css.

            itamart Itamar Tzadok (Inactive)
            itamart Itamar Tzadok (Inactive)
            Itamar Tzadok Itamar Tzadok (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.