1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 07:16:51 +02:00

Add PR #274 via @hiboudev which fixes issue processwire/processwire-issues#1855 in InputfieldPageAutocomplete.js

Co-authored-by: hiboudev <hiboudev@gmail.com>
This commit is contained in:
Ryan Cramer
2024-01-04 11:55:51 -05:00
parent 50cf963c88
commit dd146a4be8
2 changed files with 5 additions and 5 deletions

View File

@@ -381,10 +381,10 @@ var InputfieldPageAutocomplete = {
$children.each(function() {
var v = parseInt($(this).children('.itemValue').text());
if(v > 0) {
value += ',' + v;
} else if(v < 0) {
value += ',' + v;
if(v === 0) return;
if(value.length) value += ',';
value += v;
if(v < 0) {
addValue += $(this).children('.itemLabel').text() + "\n";
}
});

File diff suppressed because one or more lines are too long