? Success

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
3 Dec 2016

Summary of Changes

As the repeatable form field is deprecated we need to migrate the custom fields list options to a subform field.

What needs to be discussed is the layout of the subform to choose, any suggestions which one would be best? Pinging here @coolcat-creations and @ciar4n.

Till #12813 got merged, you need to apply that patch first.

Testing Instructions

  • Create a list field
  • Edit an article and choose some values
  • Open the article on the front

Expected result

All should work the same as without the patch. The only things which changes is that a subform field is shown when entering the list options.

image

Actual result

image

avatar laoneo laoneo - open - 3 Dec 2016
avatar laoneo laoneo - change - 3 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Dec 2016
Category Front End com_fields Libraries
avatar ggppdk
ggppdk - comment - 3 Dec 2016

Your changes in libraries/joomla/form/abstractlist.php
for method: getOptionsFromField()

effect 3 fields: list, radio, checkboxes
(they extend the class and also use the method)

and you only updated the list field,
the other 2 fields are now broken, e.g. broken in edit form

avatar laoneo
laoneo - comment - 4 Dec 2016

Thanks @ggppdk for the hint. I'v fixed it in the last commit and added a JText call to the name attribute that the name will be translated as well.

avatar ciar4n
ciar4n - comment - 4 Dec 2016

@laoneo Considering there will be only 2 fields per line, personally I think subform.repeatable-table would be best suited as displayed in your screenshot instead of subform.repeatable ( #12634 ).

avatar laoneo laoneo - change - 5 Dec 2016
The description was changed
Labels Removed: ?
avatar laoneo laoneo - edited - 5 Dec 2016
avatar laoneo
laoneo - comment - 5 Dec 2016

It looks good on big screens, but as soon as it becomes smaller than 1500 pixels, it get stacked

image

avatar brianteeman
brianteeman - comment - 5 Dec 2016

@laoneo thats a bug in the template that we have in many places :(


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

avatar Fedik
Fedik - comment - 5 Dec 2016

@laoneo try default layout layout="joomla.form.field.subform.repeatable" (or just remove the layout attribute) instead of the table layout="joomla.form.field.subform.repeatable-table" layout

avatar laoneo
laoneo - comment - 5 Dec 2016

That one uses too much space. I'm close to make a new one which uses the default, but puts the name and keys on one line.

avatar Fedik
Fedik - comment - 5 Dec 2016

I wondered why do you have: "label input" in the table cell, it should be just: "input",
when groupByFieldset="false" (that is default), then the table width would be twice smaller

hm, ok, there should be <?php echo $field->input; ?> instead of <?php echo $field->renderField(); ?>

avatar laoneo
laoneo - comment - 5 Dec 2016

@Fedik true, created PR #13093 which adresses this issue, so we leave this one as it is and when the other PR got merged, then this one will look automatically better as well.

avatar jeckodevelopment
jeckodevelopment - comment - 7 Dec 2016

@laoneo can you look at the conflict please?
components/com_fields/layouts/field/prepare/checkboxes.php

avatar laoneo
laoneo - comment - 7 Dec 2016

Done, thanks for the hint.

avatar brianteeman brianteeman - change - 8 Dec 2016
Easy No Yes
avatar brianteeman
brianteeman - comment - 8 Dec 2016

I have tested this item 🔴 unsuccessfully on 4310b6c

After applying the patch I get the following error when opening an article

Warning: Invalid argument supplied for foreach() in /libraries/joomla/form/abstractlist.php on line 220


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13069.
avatar brianteeman brianteeman - test_item - 8 Dec 2016 - Tested unsuccessfully
avatar laoneo
laoneo - comment - 8 Dec 2016

Did you test it on a fresh installation? Because the structure has changed, so old data which was created before the patch becomes invalid and can produce that error.

avatar brianteeman
brianteeman - comment - 8 Dec 2016

It should have been but I will retest later

avatar brianteeman
brianteeman - comment - 8 Dec 2016

I have tested this item ✅ successfully on 156c6ea


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

avatar brianteeman brianteeman - test_item - 8 Dec 2016 - Tested successfully
avatar ralain
ralain - comment - 14 Dec 2016

I have tested this item ✅ successfully on 156c6ea


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

avatar ralain ralain - test_item - 14 Dec 2016 - Tested successfully
avatar laoneo
laoneo - comment - 15 Dec 2016

Can we set this one to RTC? This needs to come into the first alpha, we don't want to use a deprecated form field.

avatar dgt41 dgt41 - change - 15 Dec 2016
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 15 Dec 2016

RTC

avatar rdeutz rdeutz - change - 15 Dec 2016
Milestone Added:
avatar rdeutz rdeutz - reference | 014a261 - 15 Dec 16
avatar rdeutz rdeutz - merge - 15 Dec 2016
avatar rdeutz rdeutz - close - 15 Dec 2016
avatar rdeutz rdeutz - change - 15 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-15 16:10:52
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 15 Dec 2016
avatar rdeutz rdeutz - merge - 15 Dec 2016
avatar laoneo laoneo - head_ref_deleted - 15 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment