Update of /cvsroot/openfirst/projects
In directory sc8-pr-cvs1:/tmp/cvs-serv29123
Modified Files:
notes.php
Log Message:
Fixed bug which doesn't allow the note to be added if there is an actual upload for the database.
Index: notes.php
===================================================================
RCS file: /cvsroot/openfirst/projects/notes.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** notes.php 13 Oct 2003 23:31:30 -0000 1.12
--- notes.php 17 Oct 2003 02:18:05 -0000 1.13
***************
*** 53,58 ****
echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>";
die(include($footer));
}
! }
// Addcompletion button process
--- 53,69 ----
echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>";
die(include($footer));
+ }else{
+ ofirst_dbquery("INSERT INTO ofirst_projects_notes SET
+ TaskID = '".$_GET['TaskID']."',
+ GroupID = '".$_GET['GroupID']."',
+ ProjectID = '".$_GET['ProjectID']."',
+ Description = '".$_POST['description']."',
+ Commiter = '".$user->user."',
+ Dates = '".time()."'") or die(ofirst_dberror());
+
+ echo "<br><br>Note created! [ <a href='notes.php?GroupID=".$_GET['GroupID']."&ProjectID=".$_GET['ProjectID']."&TaskID=".$_GET['TaskID']."'>Notes</a> ]<br><br>";
+ die(include($footer));
}
! }
// Addcompletion button process
|