joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Fix bug use value 1 as TRUE Workflowcondition Field

Open korenevskiy opened this issue 3 years ago • 6 comments

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" />

korenevskiy avatar Mar 31 '22 15:03 korenevskiy

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

chmst avatar Apr 16 '22 07:04 chmst

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

korenevskiy avatar Apr 24 '22 21:04 korenevskiy

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

laoneo avatar Apr 25 '22 08:04 laoneo

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" />

korenevskiy avatar Apr 25 '22 08:04 korenevskiy

This pull request has automatically rebased to 4.2-dev.

HLeithner avatar Jun 27 '22 13:06 HLeithner

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

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

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.

laoneo avatar Apr 06 '23 12:04 laoneo