Plugin Directory

Changeset 3173930


Ignore:
Timestamp:
10/22/2024 11:21:35 PM (15 months ago)
Author:
mrdenny
Message:
  • Corrected call to $optionsshow_email_notice? in cron by adding an isset() around it
  • Adjusted step interval for expense fields as the HTML didn't like decimals without the step value
Location:
time-sheets
Files:
376 added
4 edited

Legend:

Unmodified
Added
Removed
  • time-sheets/trunk/cron.php

    r3151570 r3173930  
    453453       
    454454        $options = get_option('time_sheets');
     455       
    455456        $db = new time_sheets_db();
    456457        if ($all) {
     
    501502                    echo "<div if='message' class='error'><p>Error sending email to {$group->send_to}.</p></div>";
    502503                } else {
    503                     if ($options['show_email_notice']) {
     504                    if (isset($options['show_email_notice'])) {
    504505                        echo "<div if='message' class='updated'><p>Email sent to {$group->send_to}.</p></div>";
    505506                    }
  • time-sheets/trunk/entry.php

    r3151570 r3173930  
    953953            $other_expenses_notes = (isset($timesheet->other_expenses_notes) ? $timesheet->other_expenses_notes : '');
    954954           
    955             $page = $page .  "<tr><td align='center'><input type='number' name='per_diem_days 'min='0' style='width: 5em' value='{$per_diem_days}'></td>";
     955            $page = $page .  "<tr><td align='center'><input type='number' name='per_diem_days 'min='0' step='0.01' style='width: 5em' value='{$per_diem_days}'></td>";
    956956            $page = $page .  "<td align='center'><input type='text' name='perdiem_city' size='15' value='{$per_diem_city}'></td>";
    957             $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='flight_cost' min='0' style='width: 5em' value='{$flight_cost}'></td>";
    958             $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='hotel_charges'  min='0' style='width: 5em' value='{$hotel_charges}'></td>";
    959             $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='rental_car_charges'  min='0' style='width: 5em' value='{$rental_car_charges}'></td>";
    960             $page = $page . "<td align='center'>{$currency_char}<input type='number' name='taxi'  min='0' style='width: 5em' value='{$taxi}'></td>";
    961             $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='tolls'  min='0' style='width: 5em'  value='{$tolls}'></td>";
    962             $page = $page .  "<td align='center'><input type='number' name='mileage'  min='0' style='width: 5em' value='{$mileage}'></td>";
    963             $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='other_expenses'  min='0' style='width: 5em' value='{$other_expenses}'></td></tr>";
     957            $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='flight_cost' min='0' step='0.01' style='width: 5em' value='{$flight_cost}'></td>";
     958            $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='hotel_charges'  min='0' step='0.01' style='width: 5em' value='{$hotel_charges}'></td>";
     959            $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='rental_car_charges'  min='0' step='0.01' style='width: 5em' value='{$rental_car_charges}'></td>";
     960            $page = $page . "<td align='center'>{$currency_char}<input type='number' name='taxi'  min='0' step='0.01' style='width: 5em' value='{$taxi}'></td>";
     961            $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='tolls'  min='0' step='0.01' style='width: 5em'  value='{$tolls}'></td>";
     962            $page = $page .  "<td align='center'><input type='number' name='mileage'  min='0' step='0.01' style='width: 5em' value='{$mileage}'></td>";
     963            $page = $page .  "<td align='center'>{$currency_char}<input type='number' name='other_expenses'  min='0' step='0.01' style='width: 5em' value='{$other_expenses}'></td></tr>";
    964964            $page = $page .  "<tr><td valign='top'>Other Expense Notes:</td><td colspan='8'><textarea name='other_expenses_notes' cols='70' rows='8'>{$common->esc_textarea($other_expenses_notes)}</textarea></td></tr></table>";
    965965        }
  • time-sheets/trunk/readme.txt

    r3151570 r3173930  
    115115
    116116== Changelog ==
     117= 2.1.3 =
     118* Corrected call to $options['show_email_notice'] in cron by adding an isset() around it
     119* Adjusted step interval for expense fields as the HTML didn't like decimals without the step value
     120
    117121= 2.1.2 =
    118122* Changing numeric fields to numeric data type so the user can't enter text
  • time-sheets/trunk/time-sheets.php

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