X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=tasks.php;fp=tasks.php;h=6d382bc6413fec1df281661ef173f3520ee16a34;hp=44ff8139544a5b47bd867c0762ff4e53c897c4f4;hb=fa236b27bfc3bc87902f0a92d0d017b9f2d444be;hpb=9fbab25951fb840aa1008b16746bfd8362752e2c diff --git a/tasks.php b/tasks.php index 44ff813..6d382bc 100644 --- a/tasks.php +++ b/tasks.php @@ -426,7 +426,7 @@ function tasks_edit_main() { } } - if(!logged_in_as_contractor() || $_REQUEST['client_id']) { # if you change this change the one above + if(!logged_in_as_contractor() || $edit_id || $_REQUEST['client_id']) { # if you change this change the one above if($edit_id) { $tables = 'title,url,description,state'; $values = array($title, $url, $description, $state); @@ -495,7 +495,7 @@ function tasks_edit_main() { # fix their entry in whatever way you require. } elseif($edit_id) { # we've recieved an edit id, but no data. So we grab the values to be edited from the database - list($title, $url, $description, $state, $paid) = db_get_row('tasks', 'title,url,description,state,price', 'where id=%i', $edit_id); + list($title, $url, $description, $state, $price) = db_get_row('tasks', 'title,url,description,state,price', 'where id=%i', $edit_id); tasks_tem_sets($title, $url, $description, $price); } else { # form not submitted, you can set default values like so: