Address ISLANDORA-1139

Fixes SQL errors resulting from functions being passed wrong parameters from menu callbacks.