? Success
Pull Request for # 5209

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
27 Jun 2015

See #5209 for issue details.


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 mbabker mbabker - open - 27 Jun 2015
avatar mbabker mbabker - change - 27 Jun 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 27 Jun 2015
Category Libraries
avatar zero-24 zero-24 - change - 27 Jun 2015
The description was changed
Rel_Number 0 5209
Relation Type Pull Request for
Easy No Yes
avatar zero-24
zero-24 - comment - 27 Jun 2015

tested successful. Thanks :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7277.

avatar zero-24 zero-24 - test_item - 27 Jun 2015 - Tested successfully
avatar jwaisner
jwaisner - comment - 28 Jun 2015

@test

PR works as intended.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7277.

avatar jwaisner jwaisner - test_item - 28 Jun 2015 - Tested successfully
avatar zero-24 zero-24 - change - 28 Jun 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 28 Jun 2015

RTC :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7277.

avatar zero-24 zero-24 - change - 28 Jun 2015
Labels Added: ?
avatar photodude
photodude - comment - 29 Jun 2015

Looks like the php5.5 travis CI test needs to be re-run.

avatar Kubik-Rubik
Kubik-Rubik - comment - 29 Jun 2015

@photodude Thanks, I've restarted the job at Travis.

avatar Kubik-Rubik
Kubik-Rubik - comment - 3 Jul 2015

Thank you @mbabker! Merged.

avatar zero-24 zero-24 - close - 3 Jul 2015
avatar mbabker mbabker - change - 3 Jul 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-07-03 10:07:49
Closed_By mbabker
avatar mbabker mbabker - close - 3 Jul 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment