joomla-cms
joomla-cms copied to clipboard
Fix bug use value 1 as TRUE Workflowcondition Field
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 could youplease complete your PR with the usual description and Testing instruction?
@chmst I described the problem in detail and added this description to the top description.
But we need a test instruction, so other people can test your pr if it fixes the issue. See #37521 for an example.
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" />
This pull request has automatically rebased to 4.2-dev.
This pull requests has been automatically converted to the PSR-12 coding standard.
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.