? Success

User tests: Successful: Unsuccessful:

avatar PAlexcom
PAlexcom
11 Mar 2014

Patch for a small bug.

Problem:
Not all params are reseted after the display() method.
For example:

$microdata = new JMicrodata('Article');
$html = $microdata->enable(false)->property('name')->content('TITLE ARTICLE ')->display()
    . $microdata->property('aggregateRating')->display();

It returns

TITLE ARTICLE TITLE ARTICLE

but the output should be

TITLE ARTICLE

The problem is that the $content param is not reseted when JMicrodata is disabled.

Bug Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33454&start=0

avatar PAlexcom PAlexcom - open - 11 Mar 2014
avatar phproberto phproberto - change - 9 Jun 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-06-09 01:45:23
avatar phproberto phproberto - change - 9 Jun 2014
Title
JMicrodata: small bug fix, reset params after the display() method
[#33454] JMicrodata: small bug fix, reset params after the display() method
avatar phproberto phproberto - close - 9 Jun 2014
avatar phproberto phproberto - reference | - 9 Jun 14
avatar phproberto phproberto - merge - 9 Jun 2014
avatar phproberto phproberto - close - 9 Jun 2014
avatar PAlexcom PAlexcom - change - 9 Jun 2014
Title
JMicrodata: small bug fix, reset params after the display() method
[#33454] JMicrodata: small bug fix, reset params after the display() method
avatar PAlexcom PAlexcom - head_ref_deleted - 10 Jun 2014

Add a Comment

Login with GitHub to post a comment