I need to stop users from inadvertently submitting empty database join elements (which they can do by unselecting all items in the list).
I am using the notempty validation plugin with ajax validation - but it doesn't work (always shows as ok - green).
Trying for a quick fix I found that the '$data' sent to function dataConsideredEmpty() in databasejoin.php is not an array - but rather an html string ( the data in the form of a <ul> list ).
I tried using $data = strip_tags($data); but still no luck. (It seems that even the ul list being sent to the dataConsideredEmpty() function is not accurate.)
I am using the notempty validation plugin with ajax validation - but it doesn't work (always shows as ok - green).
Trying for a quick fix I found that the '$data' sent to function dataConsideredEmpty() in databasejoin.php is not an array - but rather an html string ( the data in the form of a <ul> list ).
I tried using $data = strip_tags($data); but still no luck. (It seems that even the ul list being sent to the dataConsideredEmpty() function is not accurate.)