Error

User tests: Successful: Unsuccessful:

avatar beat
beat
11 Oct 2013

https://github.com/joomla/joomla-cms/pull/2206/files#diff-8fb2f5a83bfb0c557be664644876f1adL102

has fixed @brianteeman has only fixed this regression bug for new sites. This fixes it for upgraded sites too.

Needs a test as I did this on github to help, without time to test right now. Additionally github seems to bug on mergestatus-check! So really test it before committing please.

avatar beat beat - open - 11 Oct 2013
avatar elinw
elinw - comment - 11 Oct 2013

The sample data set is not buggy, it is an example of existing data faced with a backward compatibility breaking change. I'm not sure where this buggy concept is coming from.

avatar beat
beat - comment - 11 Oct 2013

The sample data was buggy and @brianteeman fixed the buggy dataset with bootstrap-width of 1 instead of the default 0 in #2206 (without tracker item linked nor 2 @tests procedure).

The parameter bootstrap-width existed in those modules, but had a bug in implementation that got fixed.

So we need to do 1 of those:

  1. fix existing sites with that param set to 1 due to buggy sample dataset as proposed here.
  2. remove the "Bootstrap width" parameter entirely from the module parameters and remove its implementation here (which will not allow e.g. 2 or 3 or more columns of modules in backend cpanel !)
  3. rename the parameter to something not bootstrap-specific, e.g. "12ths of module width" and a new name with default of 12 and values of 1 to 12.

I think that "2" would be a pitty.
Poposal:
"1" is a quick fix for beta 1 here, and we could aim for fix "3" in beta 2.

Thoughts ?

avatar Bakual
Bakual - comment - 11 Oct 2013

Why not just update the respective entry in the database using the update SQL file? It should be possible when using proper where clauses which check the id and the params set by default. It only fails if the user did some changes to the params.

You can't do 2 or 3 as it would break templates which already use this param.

avatar beat
beat - comment - 12 Oct 2013

@Bakual Yes, that's the solution here, to add that in the SQL upgrade script, same as @brianteeman did in #2206 for new installations.

Can you please do a corresponding PR for the SQL upgrade scripts so I can close this one ?

avatar Bakual
Bakual - comment - 12 Oct 2013

@Beat This should work: #2231

avatar Bakual
Bakual - comment - 12 Oct 2013

Is there already a tracker for this? If not I can do one. Just didn't found one yet.

avatar beat
beat - comment - 12 Oct 2013

@Bakual Yes, #2231 works for me.

I didn't have time to add a tracker item for this Friday, and I actually did this quick PR as a very quick reply to a message on the bugssquad for a quick-fix for beta 1.

I'm now closing this PR in favor of #2231 as you'll have enough time to complete it for beta 2.

Thanks again for the good idea and the other PR (and tracker).

avatar beat beat - close - 12 Oct 2013

Add a Comment

Login with GitHub to post a comment