Exemplo n.º 1
0
     f_op_display_new_feedback($_GET['id'], $_GET['div_id']);
 } else {
     if ($_GET['operation'] == "feedback_accept") {
         feedback_set_accepted($_GET['id']);
         f_op_display_new_feedback($_GET['id'], $_GET['div_id']);
     } else {
         if ($_GET['operation'] == "feedback_check_in") {
             feedback_set_checked_in($_GET['id']);
             f_op_display_new_feedback($_GET['id'], $_GET['div_id']);
         } else {
             if ($_GET['operation'] == "feedback_resolve") {
                 feedback_set_resolved($_GET['id']);
                 f_op_display_new_feedback($_GET['id'], $_GET['div_id']);
             } else {
                 if ($_GET['operation'] == "feedback_unaccept") {
                     feedback_set_unaccepted($_GET['id']);
                     f_op_display_new_feedback($_GET['id'], $_GET['div_id']);
                 } else {
                     if ($_GET['operation'] == "bugfix") {
                         $sql = "UPDATE " . PREFIX . "feedback SET size=1 WHERE id=" . sql_safe($_GET['id']) . ";";
                         mysql_query($sql);
                         feedback_display_size_buttons($_GET['id'], $_GET['div_id']);
                     } else {
                         if ($_GET['operation'] == "required") {
                             $sql = "UPDATE " . PREFIX . "feedback SET size=2 WHERE id=" . sql_safe($_GET['id']) . ";";
                             mysql_query($sql);
                             feedback_display_size_buttons($_GET['id'], $_GET['div_id']);
                         } else {
                             if ($_GET['operation'] == "small_improvement") {
                                 $sql = "UPDATE " . PREFIX . "feedback SET size=3 WHERE id=" . sql_safe($_GET['id']) . ";";
                                 mysql_query($sql);
Exemplo n.º 2
0
function feedback_set_unaccepted($id)
{
    //Unaccept the feedback
    $sql = "UPDATE " . PREFIX . "feedback SET accepted=NULL, resolved=NULL, checked_in=NULL WHERE id=" . sql_safe($id) . ";";
    mysql_query($sql);
    //Set children that is not done to unaccepted
    $sql = "SELECT id FROM  " . PREFIX . "feedback WHERE merged_with=" . sql_safe($id) . " AND resolved IS NULL AND checked_in IS NULL;";
    // echo $sql;
    if ($ff = mysql_query($sql)) {
        while ($f = mysql_fetch_array($ff)) {
            feedback_set_unaccepted($f['id']);
        }
    }
}