LetoDMS Community Forum
Error when deleting current version of document (problem and solution). - Printable Version

+- LetoDMS Community Forum (https://community.letodms.com)
+-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4)
+--- Forum: Bugs/Errors (https://community.letodms.com/forumdisplay.php?fid=11)
+--- Thread: Error when deleting current version of document (problem and solution). (/showthread.php?tid=172)



Error when deleting current version of document (problem and solution). - larppaxyz - 09-21-2010

In op.RemoveVersion.php on line number 52 there is :

PHP Code:
$version $_POST['version']; 

This variable is overwritten on next line and that causes error with add_log_line() on line 70.

Solution is to change variable name to $version_num on lines 52, 53 and 70.

I hope someone can fix this to SVN repository, thank you.






RE: Error when deleting current version of document (problem and solution). - matteo lucarelli - 09-21-2010

Thank you very much.
Your fix will be included in the next 2.0.1 release