? ? ? Failure

User tests: Successful: Unsuccessful:

avatar korenevskiy
korenevskiy
31 Mar 2022

Correcting a gross mistake. Obviously, the value 1 of the field attribute is always used equivalent to "TRUE". But this value is not supported by this attribute. We very often use the values "1" or "0" to determine the bool value, and to a small extent use other values. Therefore, to support the value of "1" to determine true, I add this PR.

This field has an important XML attribute "hide_all". The value of this attribute defining the true value is: "true", "yes". But such in these values there is no value of "1". Since these values are the most common value for determining the true value.

<field type="workflowcondition" name="fieldname" hide_all="yes" />

I am adding a PR capability to support the true value for the "hide_all" attribute value of "1".

This example will work with PR, and not work without PR.

<field type="workflowcondition" name="fieldname" hide_all="1" />
avatar korenevskiy korenevskiy - open - 31 Mar 2022
avatar korenevskiy korenevskiy - change - 31 Mar 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Mar 2022
Category Libraries
avatar korenevskiy korenevskiy - change - 31 Mar 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 31 Mar 2022
avatar korenevskiy korenevskiy - change - 31 Mar 2022
Title
Update WorkflowconditionField.php
Fix bug use value 1 as TRUE Workflowcondition Field
avatar korenevskiy korenevskiy - edited - 31 Mar 2022
avatar chmst
chmst - comment - 16 Apr 2022

@korenevskiy could youplease complete your PR with the usual description and Testing instruction?

avatar korenevskiy korenevskiy - change - 24 Apr 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 24 Apr 2022
avatar korenevskiy korenevskiy - change - 24 Apr 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 24 Apr 2022
avatar korenevskiy korenevskiy - change - 24 Apr 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 24 Apr 2022
avatar korenevskiy korenevskiy - change - 24 Apr 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 24 Apr 2022
avatar korenevskiy korenevskiy - change - 24 Apr 2022
Labels Added: ? ?
avatar korenevskiy
korenevskiy - comment - 24 Apr 2022

@chmst I described the problem in detail and added this description to the top description.

avatar laoneo
laoneo - comment - 25 Apr 2022

But we need a test instruction, so other people can test your pr if it fixes the issue. See #37521 for an example.

avatar korenevskiy korenevskiy - change - 25 Apr 2022
The description was changed
avatar korenevskiy korenevskiy - edited - 25 Apr 2022
avatar korenevskiy
korenevskiy - comment - 25 Apr 2022

But we need a test instruction, so other people can test your pr if it fixes the issue. See #37521 for an example.

This example will work with PR, and not work without PR.

<field type="workflowcondition" name="fieldname" hide_all="1" />
avatar HLeithner
HLeithner - comment - 27 Jun 2022

This pull request has automatically rebased to 4.2-dev.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar korenevskiy korenevskiy - change - 1 Jul 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 6 Apr 2023

Thanks for the pull request. Unfortunately the testing instructions are missing so we can't reproduce and analyse the issue to decide if we can accept the changes or not. I'm closing the pr and when you have updated the description with proper testing instructions, please reopen it again. Thanks for understanding.

avatar laoneo laoneo - close - 6 Apr 2023
avatar laoneo laoneo - change - 6 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-06 12:08:49
Closed_By laoneo
Labels Added: ? ?
Removed: ? ?

Add a Comment

Login with GitHub to post a comment