Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2403

Widget/WidgetClient::create does not concatenate class attribute

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.1.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Calls to Widget::create and WidgetClient::create to set the $attributes argument to define a 'class' property is intended to concatenate the given class with the default class for the widget to function properly, however, the user-defined class are not concatenated.

      To fix, change the order of the array merge:

      ...
      $attributes = array_merge($default_attributes, (array)$attributes);
      ...
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jul/17

              Agile