Discussion:
[mantisbt-dev] v1.3.x deprecated helper_alternate_class() ?
Louis BAYLE
2016-01-20 16:52:05 UTC
Permalink
Hi,
I have a deprecation error on helper_alternate_class() on the CodevTT plugin.

There are several discussions on the subject (Mantis #0017437), but it
is not clear to me on what CSS fix I should apply.
Could you please tell me where I can find find some doc about it ?

here is my code:
https://github.com/lbayle/codev/blob/master/mantis_plugin/CodevTT/CodevTT.php#L289

Thank you very much,

looking forward 1.3 to come out !


Louis BAYLE
***@gmail.com
http://CodevTT.org
Louis BAYLE
2016-01-21 08:43:27 UTC
Permalink
Hi again,
I found this commit in the mantisbt git repository: SHA1 = 6aa5e9b81fb2f

I guess the fix is to simply remove the use of
helper_alternate_class() with no replacement at all,

this works on 1.3 but on 1.2.x the list widget that I added is no more
displayed. Does this mean there is no possibility to have
compatibility for 1.3 and 1.2 ?

best regards
Louis


Louis BAYLE
Tel: +33 (0)4.42.604.734
Post by Louis BAYLE
Hi,
I have a deprecation error on helper_alternate_class() on the CodevTT plugin.
There are several discussions on the subject (Mantis #0017437), but it
is not clear to me on what CSS fix I should apply.
Could you please tell me where I can find find some doc about it ?
https://github.com/lbayle/codev/blob/master/mantis_plugin/CodevTT/CodevTT.php#L289
Thank you very much,
looking forward 1.3 to come out !
Louis BAYLE
http://CodevTT.org
Damien Regad
2016-01-21 12:12:33 UTC
Permalink
Hi Louis,
Post by Louis BAYLE
I guess the fix is to simply remove the use of
helper_alternate_class() with no replacement at all,
This is correct, and works as long as the parent container has a class which
handles the alternating row colors, e.g. 'table-container' or 'form-container'.
Post by Louis BAYLE
this works on 1.3 but on 1.2.x the list widget that I added is no more
displayed. Does this mean there is no possibility to have
compatibility for 1.3 and 1.2 ?
Again, correct. This change is not backwards compatible. In 1.3 we also
reduce usage of html tables for layout, and use more divs, so in many cases
the page layout is very different.

To maintain backwards compatibility with 1.2 in parallel with 1.3 support,
you need to customize your code to take into consideration the MantisBT version.

I personnally prefer to maintain 2 distinct branches.

Hope this helps.
Louis BAYLE
2016-01-21 14:54:43 UTC
Permalink
Ok, thank you Damien.
So I'll have to maintain two versions of the plugin. As we say in
France: "If there is no solution, then there's no problem..." (devise
shadok)

:-)

Best regards
Louis BAYLE
Tel: +33 (0)4.42.604.734
Post by Damien Regad
Hi Louis,
Post by Louis BAYLE
I guess the fix is to simply remove the use of
helper_alternate_class() with no replacement at all,
This is correct, and works as long as the parent container has a class which
handles the alternating row colors, e.g. 'table-container' or 'form-container'.
Post by Louis BAYLE
this works on 1.3 but on 1.2.x the list widget that I added is no more
displayed. Does this mean there is no possibility to have
compatibility for 1.3 and 1.2 ?
Again, correct. This change is not backwards compatible. In 1.3 we also
reduce usage of html tables for layout, and use more divs, so in many cases
the page layout is very different.
To maintain backwards compatibility with 1.2 in parallel with 1.3 support,
you need to customize your code to take into consideration the MantisBT version.
I personnally prefer to maintain 2 distinct branches.
Hope this helps.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
Damien Regad
2016-01-21 16:12:17 UTC
Permalink
Post by Louis BAYLE
Ok, thank you Damien.
So I'll have to maintain two versions of the plugin
Either that, or as other plugin maintainers have decided to do, use
conditions to dynamically generate HTML adapted to currently running
MantisBT core. But maybe it's not practical considering the size of CodevTT.
Anyway it's up to you.
Post by Louis BAYLE
shadok)
Tiens, voilà une référence qui ne me rajeunit pas :-/

D

Loading...