? Pending

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
5 Mar 2018

Summary of Changes

JHtml::calendar helper method
unlilke the calendar form field via XML definition
does not support usage of minYear, maxYear (relative to current) year limitations

Testing Instructions

$attribs = array(
  'minYear'=>'-4',
  'maxYear'=>'4'
);
echo JHtml::_('calendar', $datevalue='',
  $fieldname='test', $elementid='test',
  $date_time_format='', $attribs);

Expected result

Should limit year selection to 2014 to 2022

Actual result

No such limitation

Documentation Changes Required

avatar ggppdk ggppdk - open - 5 Mar 2018
avatar ggppdk ggppdk - change - 5 Mar 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Mar 2018
Category Libraries
avatar ggppdk ggppdk - change - 5 Mar 2018
The description was changed
avatar ggppdk ggppdk - edited - 5 Mar 2018
avatar ggppdk ggppdk - change - 5 Mar 2018
The description was changed
avatar ggppdk ggppdk - edited - 5 Mar 2018
avatar ggppdk ggppdk - change - 5 Mar 2018
The description was changed
avatar ggppdk ggppdk - edited - 5 Mar 2018
avatar ggppdk ggppdk - change - 5 Mar 2018
The description was changed
avatar ggppdk ggppdk - edited - 5 Mar 2018
avatar Quy
Quy - comment - 6 Mar 2018

I have tested this item successfully on 36aa046


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

avatar Quy Quy - test_item - 6 Mar 2018 - Tested successfully
avatar Anu1601CS
Anu1601CS - comment - 6 Mar 2018

I have tested this item successfully on 36aa046


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

avatar Anu1601CS Anu1601CS - test_item - 6 Mar 2018 - Tested successfully
avatar Quy Quy - change - 6 Mar 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Mar 2018

RTC


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

avatar thomaslanger
thomaslanger - comment - 16 Mar 2018

JS not work correct. See my Issue ##19926

avatar ggppdk
ggppdk - comment - 16 Mar 2018

@thomaslanger

what you are reporting is not related to this PR
this PR does not try to modify or fix JS behaviour of the calendar
this PR is adding the minyear and maxyear options to the JHtml::calendar helper method, like they exist in form element defined in XML files of forms

avatar mbabker mbabker - change - 17 Mar 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-03-17 15:30:58
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 17 Mar 2018
avatar mbabker mbabker - merge - 17 Mar 2018

Add a Comment

Login with GitHub to post a comment