Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LetoDMS 2.0: Doc without name are zombi
#2
I noticed this too, its happening because the javascript validation is failing in (out/out.AddDocument.php). Now there should be a folder view delete function, each document has a corresponding checkbox, this would resolve the zombie issue.

The validation of the userfile field is failing which is causing the rest to fail. See marked line below, I commented out the userfile check and added in a check for if name is disabled(gets disabled when multiple uploads are done)

Code:
function checkForm()
{
        var msg = "";
Comment Out-->  //if (document.form1.userfile.value == "") msg += "<?php printMLText("js_no_file");?>\n";
Added-->       if(!document.form1.name.disabled){
                if (document.form1.name.value == "") msg += "<?php printMLText("js_no_name");?>\n";
Added-->      }
<?php
        if (isset($settings->_strictFormCheck) && $settings->_strictFormCheck) {
        ?>
        if (document.form1.comment.value == "") msg += "<?php printMLText("js_no_comment");?>\n";
        if (document.form1.keywords.value == "") msg += "<?php printMLText("js_no_keywords");?>\n";
<?php
        }
?>
        if (msg != ""){
                alert(msg);
                return false;
        }
        else return true;
}

I'm not sure how to fix the Userfile JS validation, maybe it should be done on the server side instead.
Reply


Messages In This Thread
LetoDMS 2.0: Doc without name are zombi - by tme - 09-03-2010, 12:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)