Merge branch 'develop' of github.com:pandorafms/pandorafms into develop

This commit is contained in:
mdtrooper 2014-09-01 15:31:53 +02:00
commit 2ac861b8d9
1 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,9 @@ function fill_parent_select(id_item) {
.filter(function() { if ($(this).attr('value') != 0) return true; }) .filter(function() { if ($(this).attr('value') != 0) return true; })
.remove(); .remove();
jQuery.each(parents, function(key, value) { jQuery.each(parents, function(key, value) {
if (value == undefined) {
return;
}
if (id_item == key) { if (id_item == key) {
return; //continue return; //continue
} }