? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
5 Jul 2019

Pull Request for Issue #25429.

Summary of Changes

Removes required attribute from a field.

Testing Instructions

Go to Redirects.
Search for keywords.

Expected result

Form submitted.

Actual result

Form not submitted, "Please fill out this field." prompt is shown by browser.

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 5 Jul 2019
avatar SharkyKZ SharkyKZ - change - 5 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jul 2019
Category Administration com_redirect
avatar SharkyKZ SharkyKZ - change - 5 Jul 2019
Labels Added: ?
avatar Quy
Quy - comment - 5 Jul 2019

I have tested this item successfully on 338f033


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

avatar Quy Quy - test_item - 5 Jul 2019 - Tested successfully
avatar richard67 richard67 - test_item - 6 Jul 2019 - Tested successfully
avatar richard67
richard67 - comment - 6 Jul 2019

I have tested this item successfully on 338f033


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jul 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jul 2019

Status "Ready To Commit".

avatar brianteeman
brianteeman - comment - 6 Jul 2019

@HLeithner @wilsonge so its ok to remove the required field here but not where it actually makes sense for the form to remove required fields? ?‍♂

avatar SharkyKZ
SharkyKZ - comment - 6 Jul 2019

@brianteeman, here the attribute only exists in HTML markup, not in XML form definition. It can only perform client-side validation. Your concern relates to uses that affect server-side validation. This is something that needs to be a addressed on a case-by-case basis.

avatar brianteeman
brianteeman - comment - 6 Jul 2019

And it's not. It's arbitrary and inconsistent

avatar wilsonge
wilsonge - comment - 9 Jul 2019

Well the correct solution to this is that batch should be a separate form. And this should be required in that form. My guess is that this is the only place in the CMS where this is the only field (and by proxy required in a batch form)

Can someone check if there are any other places where batch is a separate form? If there's not we can remove this temporarily and try and refactor batch in another PR so we can reintroduce it. If there is already places were we have separate batch forms then let's get it right first time :)

avatar brianteeman
brianteeman - comment - 9 Jul 2019

this is the only place. I guess it was created at a later date to the bulk import as that uses the batch ;(

avatar wilsonge
wilsonge - comment - 10 Jul 2019

OK I'm merging this to unblock but i think we've identified the longer term issue here and I've captured that in #25489

avatar wilsonge wilsonge - change - 10 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-10 09:36:24
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 10 Jul 2019
avatar wilsonge wilsonge - merge - 10 Jul 2019

Add a Comment

Login with GitHub to post a comment