Ticket #1485312 (closed Bugs: fixed)

Opened 3 months ago

Last modified 3 months ago

Please add "readonly" attribute to $allowed in class hmtl_inputfield

Reported by: rosali Owned by:
Priority: 5 Milestone: 0.2-beta
Component: PHP backend Version: 0.2-alpha
Severity: normal Keywords:
Cc:

Description

./program/include/html.php line 251

Change History

follow-up: ↓ 2   Changed 3 months ago by alec

  • component changed from Client Scripts to PHP backend

protected is ok, what you mean by read-only and why?

in reply to: ↑ 1   Changed 3 months ago by rosali

Replying to alec:

protected is ok, what you mean by read-only and why?

I need the "readonly" attribute for text input fields in templates. I use for date settings a date picker. So, a user should not be able to edit the input field. Yes, I could use a hidden field, but then the user does not see what the date picker returns!

line251
_

// Find me: Bug Fix: 'readonly' was missing !![[BR]]

protected $allowed = array('type','name','value','size','tabindex','autocomplete','checked','onchange', 'onclick', 'disabled', 'readonly',);

  Changed 3 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from later to 0.2-beta

Fixed in r1728

Note: See TracTickets for help on using tickets.