Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Andreas Wagner

BUG: Number can not be negative

Hey there,

we are trying to update your plugins from:
– Admin Columns Pro from 5.3.2 to 5.6
– Admin Columns Pro – Advanced Custom Fields (ACF) from 2.6.3 to 2.7
– Admin Columns Pro – WooCommerce from 3.5.4 to 3.6

but now we are having a problem with numbers fields that they cannot get negative.
Please see my screen video:

Thanks a lot in advance,
Andreas

2 years, 6 months ago
Stefan van den Dungen Gronovius
Developer

Thanks for your feedback.
We were able to reproduce the issue and this is indeed a bug.
It will be fixed in the next release.
In the meantime you can fix it by changing the file:

admin-columns-pro/classes/Editing/Service/ComputedNumber.php'

You can remove the following 3 lines in the file:

if ( ! $args[ self::ARG_ALLOW_NEGATIVE ] && $value < 0 && $input_value !== '' ) { $value = 0; }`

2 years, 6 months ago

You must be logged in to reply to this topic.