Plugin Directory

Changeset 2975176


Ignore:
Timestamp:
10/05/2023 12:05:49 PM (2 years ago)
Author:
mrdenny
Message:
  • Fixed bug with missing $ when referencing a variable
  • Fixed bus with incorrect variable name
Location:
time-sheets
Files:
375 added
3 edited

Legend:

Unmodified
Added
Removed
  • time-sheets/trunk/manage-projects.php

    r2972812 r2975176  
    403403
    404404            if(isset($_GET['retainer_id'])) {
    405                 $retainer_id = isset($_GET['retainer_id']);
     405                $retainer_id = intval($_GET['retainer_id']);
    406406                $hours_included = intval($_GET['hours_included']);
    407407                $hourly_rate = intval($_GET['$hourly_rate']);
     
    456456                    if ($frequencies) {
    457457                        foreach ($frequencies as $freq) {
    458                             echo "<option value='{$freq->retainer_id}'{$common->is_match($freq->retainer_id, $retainer_type, ' selected')}>{$freq->retainer_name}</option>";
     458                            echo "<option value='{$freq->retainer_id}'{$common->is_match($freq->retainer_id, $retainer_id, ' selected')}>{$freq->retainer_name}</option>";
    459459                        }
    460460                    }
     
    504504            $IsRetainer=0;
    505505            $retainer_id="";
    506             $hours_included="";
    507             $hourly_rate="";
     506            $hours_included="0";
     507            $hourly_rate="0";
    508508        }
    509509
     
    543543            (%d, %s, %d, %d, %d, %d, %s, %d, %d, %s, %d, %d, %d, %d, %d, %d)";
    544544
    545         $parms = array(intval($_GET['ClientId']), sanitize_text_field($_GET['ProjectName']), $IsRetainer, $MaxHours, 0, $Active, sanitize_textarea_field($_GET['notes']), $BillOnProjectCompletion, $flat_rate, sanitize_text_field($_GET['po_number']), intval($_GET['sales_person_id']), intval($_GET['technical_sales_person_id']), $close_on_completion, $retainer_id, $hours_included, hourly_rate);
     545        $parms = array(intval($_GET['ClientId']), sanitize_text_field($_GET['ProjectName']), $IsRetainer, $MaxHours, 0, $Active, sanitize_textarea_field($_GET['notes']), $BillOnProjectCompletion, $flat_rate, sanitize_text_field($_GET['po_number']), intval($_GET['sales_person_id']), intval($_GET['technical_sales_person_id']), $close_on_completion, $retainer_id, $hours_included, $hourly_rate);
    546546       
    547547        $db->query($sql, $parms);
  • time-sheets/trunk/readme.txt

    r2973584 r2975176  
    112112
    113113== Changelog ==
     114
     115= 1.33.6 =
     116* Fixed bug with missing $ when referencing a variable
     117* Fixed bus with incorrect variable name
    114118
    115119= 1.33.5 =
  • time-sheets/trunk/time-sheets.php

    r2973584 r2975176  
    22/*
    33Plugin Name: Time Sheets
    4 Version: 1.33.5
     4Version: 1.33.6
    55Plugin URI: https://www.dcac.com/go/time-sheets
    66Description: Time Sheets application
Note: See TracChangeset for help on using the changeset viewer.