? ? Pending

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
20 Apr 2017

The code to display hint property in calendar fields is there, but it doesn't work.

Testing Instructions

Create a new (or modify an existing) calendar field, in the front-end or backend, and ensure to assign it a "hint" property, as shown in the picture:
I have temporary modified the calendar fields already present in Article Manager, to save me a lot of time.
xml

Before the patch, the hint does not show.
no-hint

After the patch, the hint is there.
hint

avatar demis-palma demis-palma - open - 20 Apr 2017
avatar demis-palma demis-palma - change - 20 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2017
Category Layout
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 20 Apr 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Apr 2017

I have tested this item successfully on 453cfea


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2017
Easy No Yes
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2017
Title
[com_fields] Fixed calendar field hint
Fixed calendar field hint
avatar joomla-cms-bot joomla-cms-bot - edited - 20 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2017
Title
Fixed calendar field hint
[com_fields] Fixed calendar field hint
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2017
Category Layout com_fields Layout
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2017
Category Layout com_fields Layout
avatar dgt41 dgt41 - test_item - 20 Apr 2017 - Tested successfully
avatar dgt41
dgt41 - comment - 20 Apr 2017

I have tested this item successfully on 453cfea


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

avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2017
Title
Fixed calendar field hint
[com_fields] Fixed calendar field hint
avatar joomla-cms-bot joomla-cms-bot - edited - 20 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Apr 2017
Category Layout com_fields Layout
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2017
Category Layout com_fields Layout
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Apr 2017

RTC after two successful tests.

avatar infograf768
infograf768 - comment - 20 Apr 2017

@wilsonge
don't you think we can still get this in 370? it is a simple error.

avatar wilsonge
wilsonge - comment - 20 Apr 2017

It's @rdeutz 's decision and he said in maintainers glip chat to wait for 3.7.1

avatar wilsonge wilsonge - change - 27 Apr 2017
Title
[com_fields] Fixed calendar field hint
Fixed calendar field hint
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-27 12:47:47
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 27 Apr 2017
avatar wilsonge wilsonge - merge - 27 Apr 2017
avatar OctavianC
OctavianC - comment - 27 Apr 2017

Shouldn't $hint be escaped? #15618

avatar demis-palma
demis-palma - comment - 27 Apr 2017

@OctavianC nice spot. For what I know, the hint can be set only in the XML, and in no case it holds user inputs. So it does not causes security issues unless hacked by a site administrator, but, again,
"Hacking yourself is not hacking".

avatar brianteeman
brianteeman - comment - 27 Apr 2017

No. You can set the hint when you create the field in the UI

avatar PhilETaylor
PhilETaylor - comment - 27 Apr 2017

The Placeholder is only set by xml/admin so yes - "comes under hack yourself"

However, yes, it should be escaped, because even after this patch if you place a placeholder of:

enter a "birth date" here

then it would break and only show

enter a

I'll do a quick PR

avatar PhilETaylor
PhilETaylor - comment - 27 Apr 2017

My PR #15632 is a duplicate of #15618 - both fix this issue

Add a Comment

Login with GitHub to post a comment