? Success
Pull Request for # 7363

User tests: Successful: Unsuccessful:

avatar n9iels
n9iels
7 May 2016

This PR is a replaces #7653

The problem

The default values of the codemirror parameters defined in the PHP file are not equal to the default values of the parameters defined in the XML file. The result of this is that on a new installation the active line is highlighted but the XML parameter is set to "no".

Changes

  • Set the default values in the XML file equal to the PHP file
  • Apply the Joomla! Codestyle for XML files

How to test

Just confirm that the all the parameters are working correct. The only thing that is changed are the default values of the XML parameters.

avatar n9iels n9iels - open - 7 May 2016
avatar n9iels n9iels - change - 7 May 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Labels Added: ?
avatar n9iels n9iels - change - 7 May 2016
The description was changed
avatar brianteeman
brianteeman - comment - 7 May 2016

What happens on a site update. Are the "wrong" params still in the database?

avatar n9iels
n9iels - comment - 7 May 2016

The only changes I made are the default values in the XML file. These values are only applied when the parameters are not in the database or if they are empty.

So on a site update the current configuration of the parameters will be untouched.

avatar brianteeman
brianteeman - comment - 7 May 2016

Which means that it doesn't fix existing sites ?

avatar mbabker
mbabker - comment - 7 May 2016

Historically updates haven't touched sites' existing configs unless
absolutely necessary.

On Saturday, May 7, 2016, Brian Teeman notifications@github.com wrote:

Which means that it doesn't fix existing sites ?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#10286 (comment)

avatar n9iels
n9iels - comment - 7 May 2016

That determines on what you call "wrong" parameters. Keep in mind there are no problems with the current parameters. The only thing is that when you save the parameters of codemirror for the first time the configuration change after save.

Example:
in the PHP file the following parameter is configured $this->params->get('activeLine', true) but the XML says this:

<field
    name="activeLine"
    type="radio"
    class="btn-group btn-group-yesno"
    default="0"
    filter="options"
    description="PLG_CODEMIRROR_FIELD_ACTIVELINE_DESC"
    label="PLG_CODEMIRROR_FIELD_ACTIVELINE_LABEL"
    >
    <option value="1">JON</option>
    <option value="0">JOFF</option>
</field>

If the parameters are not in the database the active line will be highlighted, because this is the default value. When open the plugin settings of code mirror, the setting for the active line is default set to 0. So when save the settings the active line won't be highlighted any more.

If this patch is applied there are is no difference any more with the default PHP values and default XML values. So when save the parameters for the first time nothing changed.
If the user already save the parameters also nothing will happen and the current situation will be untouched.

avatar brianteeman brianteeman - change - 8 May 2016
Rel_Number 0 7363
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 8 May 2016
Category Code style
avatar brianteeman brianteeman - change - 11 May 2016
Category Code style Code style Plugins
avatar brianteeman brianteeman - change - 11 May 2016
Title
Make default parameter values in PHP equal to the default parameter values in XML
Make default CODEMIRROR parameter values in PHP equal to the default parameter values in XML
avatar brianteeman
brianteeman - comment - 11 May 2016

Updated title to show it is for codemirror


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

avatar brianteeman brianteeman - change - 11 May 2016
Title
Make default parameter values in PHP equal to the default parameter values in XML
Make default CODEMIRROR parameter values in PHP equal to the default parameter values in XML
avatar n9iels n9iels - change - 1 Jun 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 2 Aug 2016
Category Code style Plugins Plugins Front End Code style
avatar AlexRed AlexRed - test_item - 30 Mar 2017 - Tested successfully
avatar AlexRed
AlexRed - comment - 30 Mar 2017

I have tested this item successfully on 84cfc32

Patch ok for me


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

avatar AlexRed
AlexRed - comment - 30 Mar 2017

I have tested this item successfully on 84cfc32

Patch ok for me


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 May 2017

@n9iels shouldn't his PR updatet cause Install shows 3.6 Look?

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 May 2017
The description was changed
Status Pending Information Required
avatar joomla-cms-bot joomla-cms-bot - edited - 28 May 2017
avatar n9iels
n9iels - comment - 28 May 2017

@franz-wohlkoenig update date now

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 May 2017

I have tested this item successfully on 1cd5ad7


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 28 May 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 May 2017

@AlexRed can you please retest?

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 May 2017
Status Information Required Discussion
avatar AlexRed
AlexRed - comment - 28 May 2017

I have tested this item successfully on 1cd5ad7


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

avatar AlexRed AlexRed - test_item - 28 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 May 2017
Status Discussion Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 May 2017

RTC after two successful tests.

avatar rdeutz
rdeutz - comment - 6 Jun 2017

@n9iels could you merge staging into your PR and ping me so I can merge it, thanks.

avatar rdeutz rdeutz - change - 6 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-06 18:24:45
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 6 Jun 2017
avatar rdeutz rdeutz - merge - 6 Jun 2017

Add a Comment

Login with GitHub to post a comment