?
Referenced as Pull Request for: # 7277
avatar rb-nk
rb-nk
26 Nov 2014

Steps to reproduce the issue

Create form with

  <field name='description'
  type="editor" 
  cols="5"
  rows="5"
  label='COM_NKCOMP_FIELD_GROUPTARGET_LABEL'
  description='COM_NKCOMP_FIELD_DESC'
  required="true"
  buttons="false"
  filter="JComponentHelper::filterText"
/>

When rendered in components administration view, the value for the attribute "cols" is not shown in the HTML output for the according textarea element.

Expected result

Value for cols should be passed to HTML-Element.

Actual result

Empty attribute in HTML-Element textarea: cols=""

System information (as much as possible)

Linux, Apache2, php 5.4

Additional comments

traced it down to libraries/cms/form/field/editor/editor.php line 249:

249c249
< $this->name, htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8'), $this->width, $this->height, $this->cols, $this->rows,
---
> $this->name, htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8'), $this->width, $this->height, $this->columns, $this->rows,

In JFormFieldTextarea is no class variable "cols" but a class variable "columns".

avatar rb-nk rb-nk - open - 26 Nov 2014
avatar brianteeman brianteeman - change - 3 Jan 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 27 Jun 2015

Closing as we have a PR: #7277

avatar zero-24 zero-24 - change - 27 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-27 20:36:57
Closed_By zero-24
Build 3.3.6 staging
avatar zero-24 zero-24 - close - 27 Jun 2015

Add a Comment

Login with GitHub to post a comment